<Swing Dev> RFR: 8160720: [TEST_BUG] javax/swing/SwingUtilities/TestBadBreak/TestBadBreak.java
Sergey Bylokhov
serb at openjdk.java.net
Wed Feb 10 21:33:38 UTC 2021
On Wed, 10 Feb 2021 11:45:35 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> test/jdk/javax/swing/SwingUtilities/TestBadBreak/TestBadBreak.java line 43:
>>
>>> 41: * @summary Shortening via " ... " is broken for Strings containing a combining
>>> 42: * diaeresis.
>>> 43: * @run main/othervm -Dsun.java2d.uiScale=1 TestBadBreak
>>
>> I missed the point why the hardcoded values do not work in this test, both frame and robot should take the coordinates in the user's space.
>
> It uses hardcoded 200,90 for frame.setBounds.I guess it should be multiplied by scale factor for correct bounds to be used.
Both coordinates robot/frame use the user's space and internally should be transformed to the device space. But that transformation should be the same, there are should not be differences in the final result for both.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2502
More information about the swing-dev
mailing list