<Swing Dev> RFR: 8160720: [TEST_BUG] javax/swing/SwingUtilities/TestBadBreak/TestBadBreak.java

Alexey Ivanov aivanov at openjdk.java.net
Mon Feb 22 18:48:40 UTC 2021


On Mon, 22 Feb 2021 18:34:42 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> 
> 
> The rendering of the test may be affected by the uiScale, but when this test is executed, it uses only one-same scale for both use cases(different strings), and both of them should produce the same result.

I compared the images produced by the test. The images are different in the same way as displayed on the screenshots above with 200%.

When using uiScale=1, the images are the same and no clipping occurs in this case. If no clipping occurs, the test does not test anything, does it?

The test has to ensure the string gets clipped so that ‘…’ replaces the part that does not fit in the size provided, and the result of clipping must be the same. This should not depend on the uiScale.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2502


More information about the swing-dev mailing list