8233637: [TESTBUG] Swing ActionListenerCalledTwiceTest.java fails on macos
Reviewed-by: jdv
This commit is contained in:
parent
e97809d3d4
commit
98c91b64b2
test/jdk
@ -786,7 +786,6 @@ javax/swing/JRadioButton/ButtonGroupFocus/ButtonGroupFocusTest.java 8233555 maco
|
||||
javax/swing/JRadioButton/8075609/bug8075609.java 8233555 macosx-all
|
||||
javax/swing/JRadioButton/8033699/bug8033699.java 8233555 macosx-all
|
||||
javax/swing/JPopupMenu/4634626/bug4634626.java 8017175 macosx-all
|
||||
javax/swing/JMenuItem/ActionListenerCalledTwice/ActionListenerCalledTwiceTest.java 8233637 macosx-all
|
||||
javax/swing/JMenuItem/6249972/bug6249972.java 8233640 macosx-all
|
||||
|
||||
sanity/client/SwingSet/src/ToolTipDemoTest.java 8225012 windows-all,macosx-all
|
||||
|
@ -63,13 +63,15 @@ public class ActionListenerCalledTwiceTest {
|
||||
}
|
||||
|
||||
try {
|
||||
Robot robot = new Robot();
|
||||
robot.setAutoDelay(100);
|
||||
|
||||
System.setProperty("apple.laf.useScreenMenuBar", "true");
|
||||
SwingUtilities.invokeAndWait(
|
||||
ActionListenerCalledTwiceTest::createAndShowGUI);
|
||||
|
||||
Robot robot = new Robot();
|
||||
robot.setAutoDelay(100);
|
||||
robot.waitForIdle();
|
||||
robot.delay(1000);
|
||||
|
||||
testForTwice(robot, "");
|
||||
|
||||
@ -99,6 +101,7 @@ public class ActionListenerCalledTwiceTest {
|
||||
frame.setJMenuBar(bar);
|
||||
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
frame.pack();
|
||||
frame.setLocationRelativeTo(null);
|
||||
frame.setVisible(true);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user