8202790: DnD test DisposeFrameOnDragTest.java does not clean up
Reviewed-by: serb, kizune, prr
This commit is contained in:
parent
e3d714d37e
commit
102a305f73
test/jdk
@ -460,7 +460,6 @@ java/awt/image/VolatileImage/CustomCompositeTest.java 8199002 windows-all,linux-
|
||||
java/awt/image/VolatileImage/GradientPaints.java 8199003 linux-all
|
||||
java/awt/JAWT/JAWT.sh 8197798 windows-all,linux-all
|
||||
java/awt/datatransfer/ConstructFlavoredObjectTest/ConstructFlavoredObjectTest.java 8202860 linux-all
|
||||
java/awt/dnd/DisposeFrameOnDragCrash/DisposeFrameOnDragTest.java 8202790 macosx-all,linux-all
|
||||
java/awt/FileDialog/FilenameFilterTest/FilenameFilterTest.java 8202882 linux-all
|
||||
java/awt/dnd/MissingDragExitEventTest/MissingDragExitEventTest.java 8030121 macosx-all,linux-all
|
||||
java/awt/Choice/ChoicePopupLocation/ChoicePopupLocation.java 8202931 macosx-all,linux-all
|
||||
|
@ -49,6 +49,7 @@ import test.java.awt.regtesthelpers.Util;
|
||||
public class DisposeFrameOnDragTest {
|
||||
|
||||
private static JTextArea textArea;
|
||||
private static JFrame background;
|
||||
|
||||
public static void main(String[] args) throws Throwable {
|
||||
|
||||
@ -72,14 +73,20 @@ public class DisposeFrameOnDragTest {
|
||||
Util.drag(testRobot,
|
||||
new Point((int) loc.x + 3, (int) loc.y + 3),
|
||||
new Point((int) loc.x + 40, (int) loc.y + 40),
|
||||
InputEvent.BUTTON1_MASK);
|
||||
InputEvent.BUTTON1_DOWN_MASK);
|
||||
|
||||
Util.waitForIdle(testRobot);
|
||||
|
||||
testRobot.delay(200);
|
||||
background.dispose();
|
||||
}
|
||||
|
||||
private static void constructTestUI() {
|
||||
background = new JFrame("Background");
|
||||
background.setBounds(100, 100, 100, 100);
|
||||
background.setUndecorated(true);
|
||||
background.setVisible(true);
|
||||
|
||||
final JFrame frame = new JFrame("Test frame");
|
||||
textArea = new JTextArea("Drag Me!");
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user