8024407: [macosx] javax/swing/JScrollBar/7163696/Test7163696.java failed intermittently on macos
authormalenkov
Tue, 10 Sep 2013 17:12:32 +0400
changeset 20121 9b9624c7726f
parent 20120 e89bfc3f8d0e
child 20122 02f38d2ee4f3
8024407: [macosx] javax/swing/JScrollBar/7163696/Test7163696.java failed intermittently on macos Reviewed-by: alexsch
jdk/test/javax/swing/JScrollBar/7163696/Test7163696.java
--- a/jdk/test/javax/swing/JScrollBar/7163696/Test7163696.java	Tue Sep 10 17:06:38 2013 +0400
+++ b/jdk/test/javax/swing/JScrollBar/7163696/Test7163696.java	Tue Sep 10 17:12:32 2013 +0400
@@ -59,7 +59,8 @@
             UIManager.setLookAndFeel(info.getClassName());
 
             SwingUtilities.invokeAndWait(this);
-            toolkit.realSync(500); // after creation
+            toolkit.realSync(); // after creation
+            Thread.sleep(1000);
 
             Point point = this.bar.getLocation();
             SwingUtilities.convertPointToScreen(point, this.bar);
@@ -69,7 +70,8 @@
             robot.mousePress(InputEvent.BUTTON1_MASK);
             robot.mouseRelease(InputEvent.BUTTON1_MASK);
 
-            toolkit.realSync(500); // before validation
+            toolkit.realSync(); // before validation
+            Thread.sleep(1000);
             SwingUtilities.invokeAndWait(this);
 
             if (this.bar != null) {