7016693: javax/swing/JScrollBar/6542335/bug6542335.java failed on Ubuntu
authorrupashka
Fri, 18 Feb 2011 00:16:53 +0300
changeset 8377 7f7a8d6235e0
parent 8376 bd543046f656
child 8378 8df0a9fb4093
7016693: javax/swing/JScrollBar/6542335/bug6542335.java failed on Ubuntu Reviewed-by: alexp
jdk/test/javax/swing/JScrollBar/6542335/bug6542335.java
--- a/jdk/test/javax/swing/JScrollBar/6542335/bug6542335.java	Wed Feb 16 18:32:06 2011 +0300
+++ b/jdk/test/javax/swing/JScrollBar/6542335/bug6542335.java	Fri Feb 18 00:16:53 2011 +0300
@@ -69,8 +69,6 @@
 
                 frame.setSize(200, 100);
                 frame.setVisible(true);
-
-                thumbBounds[0] = new Rectangle(ui.getThumbBounds());
             }
         });
 
@@ -78,6 +76,8 @@
 
         SwingUtilities.invokeAndWait(new Runnable() {
             public void run() {
+                thumbBounds[0] = new Rectangle(ui.getThumbBounds());
+
                 Point l = sb.getLocationOnScreen();
 
                 robot.mouseMove(l.x + (int) (0.75 * sb.getWidth()), l.y + sb.getHeight() / 2);