8159599: [TEST_BUG] java/awt/Modal/ModalInternalFrameTest/ModalInternalFrameTest.java
Reviewed-by: serb, aivanov
This commit is contained in:
parent
21de4e55b8
commit
f5beafa53f
@ -133,7 +133,6 @@ java/awt/Focus/ClearLwQueueBreakTest/ClearLwQueueBreakTest.java 8198618 macosx-a
|
||||
java/awt/Focus/ConsumeNextKeyTypedOnModalShowTest/ConsumeNextKeyTypedOnModalShowTest.java 6986252 macosx-all
|
||||
java/awt/Focus/MouseClickRequestFocusRaceTest/MouseClickRequestFocusRaceTest.java 8194753 linux-all,macosx-all
|
||||
java/awt/Focus/NoAutotransferToDisabledCompTest/NoAutotransferToDisabledCompTest.java 7152980 macosx-all
|
||||
java/awt/Focus/SimpleWindowActivationTest/SimpleWindowActivationTest.java 8159599 macosx-all
|
||||
java/awt/Focus/TypeAhead/TestFocusFreeze.java 8198622,6447537 macosx-all,windows-all,linux-all
|
||||
java/awt/Focus/ToFrontFocusTest/ToFrontFocus.java 7156130 linux-all
|
||||
java/awt/Focus/WrongKeyTypedConsumedTest/WrongKeyTypedConsumedTest.java 8169096 macosx-all
|
||||
|
@ -27,15 +27,24 @@
|
||||
* @bug 6385277
|
||||
* @summary Tests that override redirect window gets activated on click.
|
||||
* @author anton.tarasov@sun.com: area=awt.focus
|
||||
* @library ../../regtesthelpers
|
||||
* @build Util
|
||||
* @run main SimpleWindowActivationTest
|
||||
*/
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.util.concurrent.Callable;
|
||||
import javax.swing.SwingUtilities;
|
||||
import test.java.awt.regtesthelpers.Util;
|
||||
|
||||
import java.awt.AWTEvent;
|
||||
import java.awt.Button;
|
||||
import java.awt.Component;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.FlowLayout;
|
||||
import java.awt.Frame;
|
||||
import java.awt.Label;
|
||||
import java.awt.Point;
|
||||
import java.awt.Robot;
|
||||
import java.awt.Toolkit;
|
||||
import java.awt.Window;
|
||||
import java.awt.event.AWTEventListener;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.awt.event.InputEvent;
|
||||
import java.awt.event.WindowEvent;
|
||||
|
||||
public class SimpleWindowActivationTest {
|
||||
|
||||
@ -59,9 +68,11 @@ public class SimpleWindowActivationTest {
|
||||
|
||||
createAndShowWindow();
|
||||
robot.waitForIdle();
|
||||
robot.delay(500);
|
||||
|
||||
createAndShowFrame();
|
||||
robot.waitForIdle();
|
||||
robot.delay(500);
|
||||
|
||||
// click on Frame
|
||||
clickOn(getClickPoint(frame));
|
||||
@ -130,8 +141,8 @@ public class SimpleWindowActivationTest {
|
||||
robot.mouseMove(point.x, point.y);
|
||||
robot.waitForIdle();
|
||||
|
||||
robot.mousePress(InputEvent.BUTTON1_MASK);
|
||||
robot.mouseRelease(InputEvent.BUTTON1_MASK);
|
||||
robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
|
||||
robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
|
||||
|
||||
robot.waitForIdle();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user