8081484: [TEST_BUG]Test javax/swing/plaf/basic/6866751/bug6866751.java fails
authorssadetsky
Tue, 07 Jul 2015 09:51:30 +0300
changeset 31663 968cd1d0b646
parent 31662 1098506c0832
child 31664 5ba702169503
8081484: [TEST_BUG]Test javax/swing/plaf/basic/6866751/bug6866751.java fails Reviewed-by: alexsch, azvegint
jdk/test/javax/swing/plaf/basic/6866751/bug6866751.java
--- a/jdk/test/javax/swing/plaf/basic/6866751/bug6866751.java	Mon Jul 06 18:15:02 2015 +0300
+++ b/jdk/test/javax/swing/plaf/basic/6866751/bug6866751.java	Tue Jul 07 09:51:30 2015 +0300
@@ -27,6 +27,7 @@
    @author Semyon Sadetsky
   */
 import javax.swing.*;
+import java.awt.*;
 
 public class bug6866751 {
     private static JFrame frame;
@@ -54,8 +55,10 @@
                                         caretX + 1);
                     }
                     area.putClientProperty("caretWidth", 10);
+                    frame.pack();
                 }
             });
+            new Robot().waitForIdle();
             SwingUtilities.invokeAndWait(new Runnable() {
                 public void run() {
                     int width = area.getWidth();