8042383: [TEST_BUG] Test javax/swing/plaf/basic/BasicMenuUI/4983388/bug4983388.java fails with shortcuts on menus do not work
Reviewed-by: jdv, psadhukhan
Contributed-by: tejpal.rebari@oracle.com
--- a/test/jdk/ProblemList.txt Mon Jul 01 14:57:02 2019 -0700
+++ b/test/jdk/ProblemList.txt Thu Jul 04 12:28:34 2019 +0530
@@ -766,7 +766,6 @@
javax/swing/text/AbstractDocument/DocumentInsert/DocumentInsertAtWrongPositionTest.java 8198396 generic-all
javax/swing/JFileChooser/6868611/bug6868611.java 7059834 windows-all
javax/swing/SwingWorker/6493680/bug6493680.java 8198410 windows-all
-javax/swing/plaf/basic/BasicMenuUI/4983388/bug4983388.java 8042383 macosx-all
javax/swing/PopupFactory/6276087/NonOpaquePopupMenuTest.java 8065099 macosx-all
javax/swing/DataTransfer/8059739/bug8059739.java 8199074 generic-all
javax/swing/JCheckBox/8032667/bug8032667_image_diff.java 8199063 macosx-all
--- a/test/jdk/javax/swing/plaf/basic/BasicMenuUI/4983388/bug4983388.java Mon Jul 01 14:57:02 2019 -0700
+++ b/test/jdk/javax/swing/plaf/basic/BasicMenuUI/4983388/bug4983388.java Thu Jul 04 12:28:34 2019 +0530
@@ -78,10 +78,11 @@
});
Robot robot = new Robot();
+ robot.setAutoDelay(50);
robot.waitForIdle();
Util.hitMnemonics(robot, KeyEvent.VK_F);
robot.waitForIdle();
- robot.delay(1000);
+ robot.delay(200);
if (!bMenuSelected) {
throw new RuntimeException("shortcuts on menus do not work");