8224876: javax/swing/JWindow/ShapedAndTranslucentWindows/ShapedPerPixelTranslucentGradient.java fails on linux-x64
Reviewed-by: serb, jdv
--- a/test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/Common.java Tue Jun 04 14:23:33 2019 +0530
+++ b/test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/Common.java Tue Jun 04 14:43:57 2019 +0530
@@ -385,13 +385,13 @@
// Drag
Point location = window.getLocationOnScreen();
robot.dragAndDrop(location.x + 30, location.y + 5, location.x + dl + random.nextInt(dl), location.y + random.nextInt(dl));
- robot.waitForIdle(delay);
+ robot.waitForIdle(2*delay);
checkDynamicShape();
// Resize
location = window.getLocationOnScreen();
robot.dragAndDrop(location.x + 4, location.y + 4, location.x + random.nextInt(2*dl)-dl, location.y + random.nextInt(2*dl)-dl);
- robot.waitForIdle(delay);
+ robot.waitForIdle(2*delay);
checkDynamicShape();
EventQueue.invokeAndWait(this::dispose);