RFR: 8339233: Test javax/swing/JButton/SwingButtonResizeTestWithOpenGL.java#id failed: Button renderings are different after window resize [v2]

Manukumar V S mvs at openjdk.org
Tue Sep 3 17:49:17 UTC 2024


On Tue, 3 Sep 2024 16:41:26 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

> ```
>                 frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
>                 System.out.println("Frame is maximized");
>                 robot.waitForIdle();
> ```
> 
> You missed adding delays after frame state changes, in the above case after robot.waitForIdle() adding robot.delay(100) can stabilize the test. This applies to all the places where frame.setExtendedState() is used.

Added the delay after the frame 'Maximized' and there is already a delay in getButtonImage() just before taking a screenshot, so that will cover the 'Normal' case.

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

PR Comment: https://git.openjdk.org/jdk/pull/20777#issuecomment-2327094982


More information about the client-libs-dev mailing list