File tree 2 files changed +16
-10
lines changed
javax/swing/JColorChooser
2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -695,7 +695,6 @@ javax/swing/JWindow/ShapedAndTranslucentWindows/TranslucentJComboBox.java 802462
695
695
# The next test below is an intermittent failure
696
696
javax/swing/JComboBox/8033069/bug8033069ScrollBar.java 8163367 generic-all
697
697
javax/swing/JColorChooser/Test6827032.java 8197825 windows-all
698
- javax/swing/JColorChooser/Test7194184.java 8194126 linux-all,macosx-all
699
698
javax/swing/JSplitPane/4201995/bug4201995.java 8079127 generic-all
700
699
javax/swing/JTree/DnD/LastNodeLowerHalfDrop.java 8159131 linux-all
701
700
javax/swing/JTree/4633594/JTreeFocusTest.java 8173125 macosx-all
Original file line number Diff line number Diff line change @@ -52,17 +52,23 @@ public class Test7194184 {
52
52
private static Robot robot ;
53
53
54
54
public static void main (String [] args ) throws Exception {
55
- robot = new Robot ();
56
- robot .setAutoWaitForIdle (true );
57
- createUI ();
58
- accessRecentSwatch ();
59
- runRobot ();
60
- testColorChooser ();
61
- cleanUpUI ();
55
+ try {
56
+ robot = new Robot ();
57
+ robot .setAutoDelay (100 );
58
+ createUI ();
59
+ robot .waitForIdle ();
60
+ robot .delay (1000 );
61
+ accessRecentSwatch ();
62
+ robot .waitForIdle ();
63
+ runRobot ();
64
+ testColorChooser ();
65
+ } finally {
66
+ cleanUpUI ();
67
+ }
62
68
}
63
69
64
70
private static void createUI () throws Exception {
65
- SwingUtilities .invokeLater (new Runnable () {
71
+ SwingUtilities .invokeAndWait (new Runnable () {
66
72
@ Override
67
73
public void run () {
68
74
String title = getClass ().getName ();
@@ -71,12 +77,13 @@ public void run() {
71
77
frame .add (colorChooser );
72
78
frame .pack ();
73
79
frame .setVisible (true );
80
+ frame .setLocationRelativeTo (null );
74
81
}
75
82
});
76
83
}
77
84
78
85
private static void accessRecentSwatch () throws Exception {
79
- SwingUtilities .invokeLater (new Runnable () {
86
+ SwingUtilities .invokeAndWait (new Runnable () {
80
87
@ Override
81
88
public void run () {
82
89
Component recentSwatchPanel = Util .findSubComponent (colorChooser , "RecentSwatchPanel" );
You can’t perform that action at this time.
1 commit comments
openjdk-notifier[bot] commentedon Oct 10, 2022
Review
Issues