8168540: [TEST_BUG] On Unity, need a delay before screenshot taking to avoid animation
authoraniyogi
Mon, 31 Oct 2016 12:10:08 +0530
changeset 41904 524d908e49ea
parent 41903 7e908937a51b
child 41905 e8e5df013c6e
8168540: [TEST_BUG] On Unity, need a delay before screenshot taking to avoid animation Reviewed-by: psadhukhan, yan
jdk/test/javax/swing/text/CSSBorder/6796710/bug6796710.java
--- a/jdk/test/javax/swing/text/CSSBorder/6796710/bug6796710.java	Fri Oct 28 12:08:04 2016 +0300
+++ b/jdk/test/javax/swing/text/CSSBorder/6796710/bug6796710.java	Mon Oct 31 12:10:08 2016 +0530
@@ -24,11 +24,10 @@
 /*
  * @test
  * @key headful
- * @bug 6796710 7124242
+ * @bug 6796710 7124242 8168540
  * @summary Html content in JEditorPane is overlapping on swing components while resizing the application.
  * @library ../../../regtesthelpers
  * @build Util
- * @author Pavel Porvatov
    @run main bug6796710
  */
 
@@ -109,7 +108,7 @@
             }
         });
 
-        robot.waitForIdle();
+        robot.delay(1000);
 
         // On Linux platforms realSync doesn't guaranties setSize completion
         Thread.sleep(1000);