RFR: 8297296: java/awt/Mouse/EnterExitEvents/DragWindowTest.java fails with "No MouseReleased event on label!" [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Dec 5 04:14:39 UTC 2022


On Wed, 30 Nov 2022 07:57:16 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   fixed imports, changed robot autodelay and added delay after creating gui
>
> 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..

JPanel question is still unanswered/unchanged...

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

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



More information about the client-libs-dev mailing list