<AWT Dev> <AWT dev>[12] Review request for JDK-8213522: [TEST_BUG] 16 java/awt/Focus test cases fails on Mac OS when run in group but passes individually

Manajit Halder manajit.halder at oracle.com
Thu Nov 8 11:37:23 UTC 2018


Hi All,

Please review the test fix for JDK12.

Bug:
https://bugs.openjdk.java.net/browse/JDK-8213522 <https://bugs.openjdk.java.net/browse/JDK-8213522>

Webrev:
http://cr.openjdk.java.net/~mhalder/8213522/webrev.00/ <http://cr.openjdk.java.net/~mhalder/8213522/webrev.00/>

Fix:
16 java/awt/Focus fail when 2 event test cases (java/awt/event/KeyEvent/KeyChar/KeyCharTest.java and java/awt/event/KeyEvent/SwallowKeyEvents/SwallowKeyEvents.java) are run before Focus test cases are run. In group run java/awt/event test cases are executed before java/awt/Focus test cases and hence theses test cases always fail in group run. 

The 2 event test cases passes but looks like robot key operations doesn’t wait until all the events currently on the event queue are processed. Added autoWaitForIdle to fix the issue.

Regards,
Manajit





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20181108/549245d8/attachment.html>


More information about the awt-dev mailing list