< prev index next >

test/java/awt/KeyboardFocusmanager/TypeAhead/SubMenuShowTest/SubMenuShowTest.java

Print this page

        

@@ -1,7 +1,8 @@
 /*
- * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2013, 2016 Oracle and/or its affiliates. All rights 
+ * reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -21,11 +22,11 @@
  * questions.
  */
 
 /*
   test
-  @bug       6380743
+  @bug       6380743 8158380
   @summary   Submenu should be shown by mnemonic key press.
   @author    anton.tarasov@...: area=awt.focus
   @run       applet SubMenuShowTest.html
 */
 

@@ -97,10 +98,12 @@
         robot.keyPress(KeyEvent.VK_F);
         robot.delay(20);
         robot.keyRelease(KeyEvent.VK_F);
         robot.delay(20);
         robot.keyRelease(KeyEvent.VK_ALT);
+        Util.waitForIdle(robot);
+        
         if (isMacOSX) {
             robot.keyRelease(KeyEvent.VK_CONTROL);
             robot.delay(20);
         }
         Util.waitForIdle(robot);
< prev index next >