On Wed, 23 Nov 2022 16:59:05 GMT, Naveen Narayanan <d...@openjdk.org> wrote:
> This testcase will > 1) Verify the handleQuitRequestWith() method of QuitHandler interface. > 2) Check that the response is passed to the handler by means of quit > notification generated by a key combination of META+Q (Mac) or ALT+F4(Windows > & Linux). > 3) Confirm that the active window is closed. > > Testing: > Tested using Mach5(20 times per platform) in Mac OS, Linux and Windows and > got all pass. test/jdk/java/awt/Desktop/ActiveWindowCloseTest.java line 93: > 91: robot.setAutoDelay(50); > 92: robot.setAutoWaitForIdle(true); > 93: robot.waitForIdle(); On top of waitForIdle, a delay of 1000 is usually added for stability after a frame is visible before events are called. ------------- PR: https://git.openjdk.org/jdk/pull/11328