8233565: [TESTBUG] NullModalityDialogTest.java fails on MacOS

Reviewed-by: jdv
This commit is contained in:
Prasanta Sadhukhan 2021-04-15 09:55:29 +00:00
parent bba16f61bb
commit 2b5869ad09
2 changed files with 6 additions and 4 deletions

View File

@ -518,7 +518,6 @@ java/awt/GraphicsDevice/DisplayModes/CycleDMImage.java 7099223 linux-all,windows
java/awt/Window/WindowResizing/DoubleClickTitleBarTest.java 8233557 macosx-all
java/awt/Window/WindowOwnedByEmbeddedFrameTest/WindowOwnedByEmbeddedFrameTest.java 8233558 macosx-all
java/awt/Mouse/MouseComboBoxTest/MouseComboBoxTest.java 8233564 macosx-all
java/awt/Modal/NullModalityDialogTest/NullModalityDialogTest.java 8233565 macosx-all
java/awt/keyboard/AllKeyCode/AllKeyCode.java 8242930 macosx-all
java/awt/FullScreen/8013581/bug8013581.java 8169471 macosx-all
java/awt/event/MouseEvent/RobotLWTest/RobotLWTest.java 8233568 macosx-all

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2021, 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
@ -83,7 +83,8 @@ public class NullModalityDialogTest {
NullModalityDialogTest() throws Exception {
robot = new ExtendedRobot();
EventQueue.invokeLater(this::createGUI);
robot.setAutoDelay(100);
EventQueue.invokeAndWait(this::createGUI);
}
private void createGUI() {
@ -134,7 +135,9 @@ public class NullModalityDialogTest {
dialog.openGained.reset();
robot.type(KeyEvent.VK_TAB);
robot.keyPress(KeyEvent.VK_TAB);
robot.keyRelease(KeyEvent.VK_TAB);
robot.waitForIdle();
dialog.openGained.waitForFlagTriggered();
assertTrue(dialog.openGained.flag(),