Skip to content

Commit d2c63ee

Browse files
committedNov 20, 2019
8234332: [TESTBUG] java/awt/Focus/DisposedWindow/DisposeDialogNotActivateOwnerTest/DisposeDialogNotActivateOwnerTest.java fails on linux-x64 nightly
Reviewed-by: serb
1 parent 9d6ace5 commit d2c63ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎test/jdk/java/awt/Focus/DisposedWindow/DisposeDialogNotActivateOwnerTest/DisposeDialogNotActivateOwnerTest.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public DisposeDialogNotActivateOwnerTest() {
6262
throw new RuntimeException("Error: unable to create robot");
6363
}
6464

65+
robot.setAutoDelay(200);
6566
dialogInvisibleOwner = new Frame("Dialog Invisible Owner Frame");
6667
dialog = new Dialog(dialogInvisibleOwner, "Owned Dialog");
6768

@@ -79,8 +80,10 @@ public void focusGained(FocusEvent e) {
7980

8081
public void performTest() {
8182
frame.setVisible(true);
83+
robot.delay(200);
8284
robot.waitForIdle();
8385
clickOnTitle(frame);
86+
robot.delay(200);
8487
robot.waitForIdle();
8588
robot.delay(200);
8689
if (!frame.isFocused()) {
@@ -89,6 +92,7 @@ public void performTest() {
8992
}
9093

9194
dialog.setVisible(true);
95+
robot.delay(200);
9296
robot.waitForIdle();
9397
robot.delay(200);
9498
if (!dialog.isFocused()) {
@@ -118,7 +122,6 @@ void clickOnTitle(Component c) {
118122
robot.mouseMove(p.x + (int)(d.getWidth() / 2),
119123
p.y + ((Frame)c).getInsets().top / 2);
120124
robot.mousePress(InputEvent.BUTTON1_MASK);
121-
robot.delay(20);
122125
robot.mouseRelease(InputEvent.BUTTON1_MASK);
123126
}
124127
}

0 commit comments

Comments
 (0)
Please sign in to comment.