Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion test/jdk/ProblemList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions test/jdk/java/awt/Window/MultiWindowApp/MultiWindowAppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* questions.
*/

/**
/*
* @test
* @summary After calling frame.toBack() dialog goes to the back on Ubuntu 12.04
* @key headful
Expand All @@ -38,22 +38,24 @@ public static void main(String[] args) throws Exception {
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();
Expand All @@ -66,7 +68,7 @@ public static void main(String[] args) throws Exception {
}

win1.toBack();
robot.delay(200);
robot.delay(delay);
robot.waitForIdle();

color = robot.getPixelColor(point.x + 100, point.y + 100);
Expand Down