mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 12:04:39 +02:00
8233641: [TESTBUG] JMenuItem test bug4171437.java fails on macos
Reviewed-by: jdv
This commit is contained in:
parent
69f5235e16
commit
e97809d3d4
2 changed files with 4 additions and 4 deletions
|
@ -788,7 +788,6 @@ javax/swing/JRadioButton/8033699/bug8033699.java 8233555 macosx-all
|
||||||
javax/swing/JPopupMenu/4634626/bug4634626.java 8017175 macosx-all
|
javax/swing/JPopupMenu/4634626/bug4634626.java 8017175 macosx-all
|
||||||
javax/swing/JMenuItem/ActionListenerCalledTwice/ActionListenerCalledTwiceTest.java 8233637 macosx-all
|
javax/swing/JMenuItem/ActionListenerCalledTwice/ActionListenerCalledTwiceTest.java 8233637 macosx-all
|
||||||
javax/swing/JMenuItem/6249972/bug6249972.java 8233640 macosx-all
|
javax/swing/JMenuItem/6249972/bug6249972.java 8233640 macosx-all
|
||||||
javax/swing/JMenuItem/4171437/bug4171437.java 8233641 macosx-all
|
|
||||||
|
|
||||||
sanity/client/SwingSet/src/ToolTipDemoTest.java 8225012 windows-all,macosx-all
|
sanity/client/SwingSet/src/ToolTipDemoTest.java 8225012 windows-all,macosx-all
|
||||||
sanity/client/SwingSet/src/ScrollPaneDemoTest.java 8225013 linux-all
|
sanity/client/SwingSet/src/ScrollPaneDemoTest.java 8225013 linux-all
|
||||||
|
|
|
@ -44,21 +44,21 @@ public class bug4171437 {
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
try {
|
try {
|
||||||
|
Robot robot = new Robot();
|
||||||
|
robot.setAutoDelay(100);
|
||||||
SwingUtilities.invokeAndWait(new Runnable() {
|
SwingUtilities.invokeAndWait(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
createAndShowGUI();
|
createAndShowGUI();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Robot robot = new Robot();
|
|
||||||
robot.setAutoDelay(50);
|
|
||||||
robot.waitForIdle();
|
robot.waitForIdle();
|
||||||
|
robot.delay(1000);
|
||||||
|
|
||||||
Util.hitMnemonics(robot, KeyEvent.VK_F);
|
Util.hitMnemonics(robot, KeyEvent.VK_F);
|
||||||
Util.hitKeys(robot, KeyEvent.VK_C);
|
Util.hitKeys(robot, KeyEvent.VK_C);
|
||||||
|
|
||||||
robot.waitForIdle();
|
robot.waitForIdle();
|
||||||
Thread.sleep(1000);
|
|
||||||
|
|
||||||
if (!closeActivated || customActivated) {
|
if (!closeActivated || customActivated) {
|
||||||
throw new RuntimeException("Didn't pass the muster");
|
throw new RuntimeException("Didn't pass the muster");
|
||||||
|
@ -109,6 +109,7 @@ public class bug4171437 {
|
||||||
frame.setSize(300, 300);
|
frame.setSize(300, 300);
|
||||||
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
frame.pack();
|
frame.pack();
|
||||||
|
frame.setLocationRelativeTo(null);
|
||||||
frame.setVisible(true);
|
frame.setVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue