Skip to content

Commit e827597

Browse files
committed
8042381: Test javax/swing/JRootPane/4670486/bug4670486.java fails with Action has not been received
Backport-of: 1b71621008a62a4f806e2e97579fb8716be290a5
1 parent e18cd90 commit e827597

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/jdk/ProblemList.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,6 @@ javax/swing/JInternalFrame/Test6325652.java 8224977 macosx-all
713713
javax/swing/JPopupMenu/4870644/bug4870644.java 8194130 macosx-all,linux-all
714714
javax/swing/dnd/8139050/NativeErrorsInTableDnD.java 8202765 macosx-all,linux-all
715715
javax/swing/JEditorPane/6917744/bug6917744.java 8213124 macosx-all
716-
javax/swing/JRootPane/4670486/bug4670486.java 8042381 macosx-all
717716
javax/swing/JButton/8151303/PressedIconTest.java 8266246 macosx-aarch64
718717
java/awt/Robot/HiDPIScreenCapture/ScreenCaptureGtkTest.java 8282270 linux-all
719718
java/awt/Robot/HiDPIScreenCapture/HiDPIRobotScreenCaptureTest.java 8282270 windows-all

test/jdk/javax/swing/JRootPane/4670486/bug4670486.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public static void checkAction() {
104104
public static void main(String[] args) throws Throwable {
105105
try {
106106
Robot robot = new Robot();
107-
robot.setAutoDelay(250);
107+
robot.setAutoDelay(100);
108108

109109
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
110110

@@ -116,12 +116,14 @@ public void run() {
116116
frame.setContentPane(createPanel(frame));
117117
frame.setJMenuBar(createMenuBar());
118118
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
119+
frame.setLocationRelativeTo(null);
119120
frame.pack();
120121
frame.setVisible(true);
121122
}
122123
});
123124

124125
robot.waitForIdle();
126+
robot.delay(1000);
125127

126128
// Change the default button to
127129
// force a call to BasicRootPaneUI.updateDefaultButtonBindings()

0 commit comments

Comments
 (0)