<AWT Dev> <AWT dev>[10] Review request for JDK-8177326: [macosx] mouse event goes to button in java/awt/Mouse/EnterExitEvents/DragWindowOutOfFrameTest.java
Manajit Halder
manajit.halder at oracle.com
Thu Aug 24 10:01:27 UTC 2017
Hi All,
Kindly review the fix for JDK10.
Bug:
https://bugs.openjdk.java.net/browse/JDK-8177326/ <https://bugs.openjdk.java.net/browse/JDK-8177326/>
Webrev:
http://cr.openjdk.java.net/~mhalder/8177326/webrev.00/ <http://cr.openjdk.java.net/~mhalder/8177326/webrev.00/>
Issue:
[macosx] mouse event goes to button in java/awt/Mouse/EnterExitEvents/DragWindowOutOfFrameTest.java.
Cause:
Problem in the test case. Initial observation was that the test case used to pass for the first time and fail second time onwards. On further debugging it was observed that the test case used to pass every time if the initial mouse move in the test actually happened. The test used to fail every second or further times because after the first execution using jtreg the mouse used to remain at the same location.
Fix:
The mouse is moved at the beginning of the test to make sure the initial mouse move on the label always happens.
Note:
BUTTON1_MASK is deprecated and hence is replaced with BUTTON1_DOWN_MASK.
Regards,
Manajit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20170824/facc6aa4/attachment.html>
More information about the awt-dev
mailing list