8225511: javax/swing/JWindow/ShapedAndTranslucentWindows/ShapedTranslucentPerPixelTranslucentGradient.java fails in linux-x64

Reviewed-by: serb, prr
This commit is contained in:
Prasanta Sadhukhan 2019-06-11 11:01:22 +05:30
parent 024c62ce0c
commit 7fc422dd93

View File

@ -367,13 +367,13 @@ public abstract class Common {
// 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);
checkTranslucentShape();
// 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);
checkTranslucentShape();
EventQueue.invokeAndWait(this::dispose);