changeset 12344:f8854de12d3c

8081484: [TEST_BUG]Test javax/swing/plaf/basic/6866751/bug6866751.java fails Reviewed-by: alexsch, azvegint
author ssadetsky
date Tue, 07 Jul 2015 09:51:30 +0300
parents 4e3b853df47e
children fbf897c33625
files test/javax/swing/plaf/basic/6866751/bug6866751.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/javax/swing/plaf/basic/6866751/bug6866751.java	Mon Jul 06 18:15:02 2015 +0300
+++ b/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();