8168540: [TEST_BUG] On Unity, need a delay before screenshot taking to avoid animation
Reviewed-by: psadhukhan, yan
--- 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);