mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8159904: [TEST_BUG] Failure on solaris of java/awt/Window/MultiWindowApp/MultiWindowAppTest.java
Reviewed-by: prr
This commit is contained in:
@@ -226,7 +226,6 @@ java/awt/TrayIcon/PopupMenuLeakTest/PopupMenuLeakTest.java 8196440 linux-all
|
||||
java/awt/Window/ShapedAndTranslucentWindows/SetShapeAndClick.java 8197936 macosx-all
|
||||
java/awt/Window/ShapedAndTranslucentWindows/SetShapeDynamicallyAndClick.java 8013450 macosx-all
|
||||
java/awt/Window/ShapedAndTranslucentWindows/ShapedTranslucentWindowClick.java 8013450 macosx-all
|
||||
java/awt/Window/MultiWindowApp/MultiWindowAppTest.java 8159904 linux-all
|
||||
java/awt/Window/MultiWindowApp/ChildAlwaysOnTopTest.java 8222323 windows-all
|
||||
java/awt/Window/ShapedAndTranslucentWindows/FocusAWTTest.java 8222328 windows-all,linux-all,macosx-all
|
||||
java/awt/Window/ShapedAndTranslucentWindows/Shaped.java 8222328 windows-all,linux-all,macosx-all
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* @test
|
||||
* @summary After calling frame.toBack() dialog goes to the back on Ubuntu 12.04
|
||||
* @key headful
|
||||
@@ -38,22 +38,24 @@ public class MultiWindowAppTest {
|
||||
Window win1 = new Frame();
|
||||
Window win2 = new Dialog((Frame) null);
|
||||
|
||||
int delay = 300;
|
||||
|
||||
win1.setBounds(100, 100, 200, 200);
|
||||
win1.setBackground(Color.RED);
|
||||
win1.setVisible(true);
|
||||
|
||||
Robot robot = new Robot();
|
||||
robot.delay(200);
|
||||
robot.delay(delay);
|
||||
robot.waitForIdle();
|
||||
|
||||
win2.setBounds(win1.getBounds());
|
||||
win2.setVisible(true);
|
||||
|
||||
robot.delay(200);
|
||||
robot.delay(delay);
|
||||
robot.waitForIdle();
|
||||
|
||||
win1.toFront();
|
||||
robot.delay(200);
|
||||
robot.delay(delay);
|
||||
robot.waitForIdle();
|
||||
|
||||
Point point = win1.getLocationOnScreen();
|
||||
@@ -66,7 +68,7 @@ public class MultiWindowAppTest {
|
||||
}
|
||||
|
||||
win1.toBack();
|
||||
robot.delay(200);
|
||||
robot.delay(delay);
|
||||
robot.waitForIdle();
|
||||
|
||||
color = robot.getPixelColor(point.x + 100, point.y + 100);
|
||||
|
||||
Reference in New Issue
Block a user