<Swing Dev> RFR: 8196099: javax/swing/text/CSSBorder/6796710/bug6796710.java fails
Sergey Bylokhov
serb at openjdk.java.net
Fri Oct 30 06:18:49 UTC 2020
This test could fail on windows for two reasons:
- The window does not fit the small screen, and the robot captures the image outside the screen. Especially if the screen is small but some scale (like 150%) is set.
- The test paints and captures the button in the frame, then resize the frame and again paint and captures the button. The problem occurs if the fractional scale is used(like 125%), in that case, the button could be shifted by one pixel due to rounding depending on what position it was started to be drawn.
The solution is to always use the same uiscale=1, an updated test still can reproduce the JDK-6796710
-------------
Commit messages:
- uiscale=2 is too big for some systems
- Initial fix
Changes: https://git.openjdk.java.net/jdk/pull/950/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=950&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8196099
Stats: 21 lines in 2 files changed: 15 ins; 1 del; 5 mod
Patch: https://git.openjdk.java.net/jdk/pull/950.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/950/head:pull/950
PR: https://git.openjdk.java.net/jdk/pull/950
More information about the swing-dev
mailing list