Skip to content
Permalink
Browse files
8233637: [TESTBUG] Swing ActionListenerCalledTwiceTest.java fails on …
…macos

Backport-of: 98c91b6
  • Loading branch information
RealCLanger committed Nov 6, 2021
1 parent 8dc5f14 commit 1d2fee04f7530980471992a1716b50b9d2d1d062
Showing with 5 additions and 3 deletions.
  1. +0 −1 test/jdk/ProblemList.txt
  2. +5 −2 test/jdk/javax/swing/JMenuItem/ActionListenerCalledTwice/ActionListenerCalledTwiceTest.java
@@ -763,7 +763,6 @@ javax/swing/text/StyledEditorKit/4506788/bug4506788.java 8233562 macosx-all
javax/swing/text/GlyphPainter2/6427244/bug6427244.java 8208566 macosx-all
javax/swing/JRootPane/4670486/bug4670486.java 8042381 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
javax/swing/plaf/synth/7158712/bug7158712.java 8238720 windows-all
javax/swing/plaf/basic/BasicComboPopup/JComboBoxPopupLocation/JComboBoxPopupLocation.java 8238720 windows-all
@@ -63,13 +63,15 @@ public static void main(String[] args) throws Exception {
}

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 @@ private static void createAndShowGUI() {
frame.setJMenuBar(bar);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}

1 comment on commit 1d2fee0

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 1d2fee0 Nov 6, 2021

Please sign in to comment.