changeset 3560:888baed5c55b

7016693: javax/swing/JScrollBar/6542335/bug6542335.java failed on Ubuntu Reviewed-by: alexp
author rupashka
date Fri, 18 Feb 2011 00:16:53 +0300
parents f326139e7fda
children db0a6fd0fea9
files test/javax/swing/JScrollBar/6542335/bug6542335.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/javax/swing/JScrollBar/6542335/bug6542335.java	Wed Feb 16 18:32:06 2011 +0300
+++ b/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);