changeset 8107:eedb2b6d93ec

8024407: [macosx] javax/swing/JScrollBar/7163696/Test7163696.java failed intermittently on macos Reviewed-by: alexsch
author malenkov
date Tue, 10 Sep 2013 17:12:32 +0400
parents 1daffcf035c4
children 0cc00c11e17e
files test/javax/swing/JScrollBar/7163696/Test7163696.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/javax/swing/JScrollBar/7163696/Test7163696.java	Tue Sep 10 17:06:38 2013 +0400
+++ b/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) {