On Tue, 15 Nov 2022 07:58:24 GMT, Jayathirth D V <[email protected]> wrote:
> 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. test/jdk/sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java line 31: > 29: * @author [email protected]: area=Graphics > 30: * @run main/othervm OnScreenRenderingResizeTest > 31: * @run main/othervm -Dsun.java2d.d3d=false OnScreenRenderingResizeTest DirectDraw/GDI is default pipeline in Windows(https://docs.oracle.com/javase/10/troubleshoot/java-2d-pipeline-rendering-and-properties.htm#JSTGD428 ) and explicitly mentioning d3d=false should not make any difference that's why i have removed it. But i have verified updated test even with d3d=false and there are no issues. If needed i can update the test to run with d3d=false also. ------------- PR: https://git.openjdk.org/jdk/pull/11158
