RFR: 8022403: sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java fails
Jayathirth D V
jdv at openjdk.org
Tue Nov 15 08:07:34 UTC 2022
This test was failing because of color difference on boundaries. Updated test case to not check edges and added color tolerance.
Also updated test to:
1) Use standard GraphicsConfiguration bounds for image instead of constant numbers.
2) Use waitForIdle before screen capture and added auto delay
3) Move mouse pointer away from rendering content (In my local Mac it failed every time when mouse pointer was present over test frame)
4) Remove usage of insets as it is undecorated and remove windows closing listener
5) Dispose frame when test fails
With these changes test is not failing in CI with multiple runs on all platforms.
-------------
Commit messages:
- Bring back initial delay for slow systems
- Remove from problemlist
- Use waitForIdle and standardise image bounds
- Initial change
Changes: https://git.openjdk.org/jdk/pull/11158/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11158&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8022403
Stats: 88 lines in 2 files changed: 33 ins; 24 del; 31 mod
Patch: https://git.openjdk.org/jdk/pull/11158.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11158/head:pull/11158
PR: https://git.openjdk.org/jdk/pull/11158
More information about the client-libs-dev
mailing list