On Tue, 29 Nov 2022 23:10:56 GMT, Alisen Chung <ach...@openjdk.org> wrote:

> Test was run on mac, windows, linux 50 times and passed after change
> Before fix, test fails about once every 50 runs on linux and windows platforms

test/jdk/java/awt/Mouse/EnterExitEvents/DragWindowTest.java line 58:

> 56: 
> 57:         Robot robot = new Robot();
> 58:         robot.setAutoDelay(250);

We normally do not need so much delay for test to work, 100ms being the norm 
which has sufficed for other tests.
Maybe you need to wait robot.delay after creating and showing the GUI which is 
not done here.
Also, this test has heavyweight and lightweight mix, for ex. MyDragWindow class 
uses JPanel but not in EDT which can result in some timing issue you are 
seeing, either it needs to be in EDT or can it be changed to AWT Panel as done 
elsewhere in the test?

ALso, please change the wildcards imports while you are at it..

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

PR: https://git.openjdk.org/jdk/pull/11425

Reply via email to