Skip to content

Commit bdae1d8

Browse files
Manukumar V SAbdul Kolarkunnu
Manukumar V S
authored and
Abdul Kolarkunnu
committedFeb 21, 2022
8282147: [TESTBUG] waitForIdle after creating frame in JSpinnerMouseAndKeyPressTest.java
Reviewed-by: aivanov
1 parent 51f4420 commit bdae1d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎test/jdk/javax/swing/JSpinner/4515999/JSpinnerMouseAndKeyPressTest.java

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ private static void createUI() {
8383
panel.add(spinner);
8484
frame.add(panel);
8585
frame.setUndecorated(true);
86+
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
8687
frame.pack();
8788
frame.setAlwaysOnTop(true);
8889
frame.setLocationRelativeTo(null);
@@ -103,6 +104,7 @@ public static void runTest() throws Exception {
103104
setLookAndFeel(laf);
104105
createUI();
105106
});
107+
robot.waitForIdle();
106108

107109
SwingUtilities.invokeAndWait(() -> {
108110
Point loc = spinner.getLocationOnScreen();

0 commit comments

Comments
 (0)
Please sign in to comment.