File tree 2 files changed +6
-4
lines changed
java/awt/Modal/NullModalityDialogTest
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -482,7 +482,6 @@ java/awt/Modal/ModalFocusTransferTests/FocusTransferDialogsDocModalTest.java 816
482
482
java/awt/GraphicsDevice/DisplayModes/CycleDMImage.java 7099223 linux-all,solaris-all,windows-all
483
483
java/awt/Window/WindowResizing/DoubleClickTitleBarTest.java 8233557 macosx-all
484
484
java/awt/Window/WindowOwnedByEmbeddedFrameTest/WindowOwnedByEmbeddedFrameTest.java 8233558 macosx-all
485
- java/awt/Modal/NullModalityDialogTest/NullModalityDialogTest.java 8233565 macosx-all
486
485
java/awt/keyboard/AllKeyCode/AllKeyCode.java 8242930 macosx-all
487
486
java/awt/FullScreen/8013581/bug8013581.java 8169471 macosx-all
488
487
java/awt/event/MouseEvent/RobotLWTest/RobotLWTest.java 8233568 macosx-all
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2007, 2014 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2007, 2021 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -82,7 +82,8 @@ public void doOpenAction() {
82
82
NullModalityDialogTest () throws Exception {
83
83
84
84
robot = new ExtendedRobot ();
85
- EventQueue .invokeLater (this ::createGUI );
85
+ robot .setAutoDelay (100 );
86
+ EventQueue .invokeAndWait (this ::createGUI );
86
87
}
87
88
88
89
private void createGUI () {
@@ -133,7 +134,9 @@ public void doTest() throws Exception {
133
134
134
135
dialog .openGained .reset ();
135
136
136
- robot .type (KeyEvent .VK_TAB );
137
+ robot .keyPress (KeyEvent .VK_TAB );
138
+ robot .keyRelease (KeyEvent .VK_TAB );
139
+ robot .waitForIdle ();
137
140
138
141
dialog .openGained .waitForFlagTriggered ();
139
142
assertTrue (dialog .openGained .flag (),
You can’t perform that action at this time.
0 commit comments