8297296: java/awt/Mouse/EnterExitEvents/DragWindowTest.java fails with "No MouseReleased event on label!"
Reviewed-by: psadhukhan, dnguyen
This commit is contained in:
parent
a130c8a668
commit
0ed6d0b456
@ -668,7 +668,6 @@ java/awt/Window/8159168/SetShapeTest.java 8274106 macosx-aarch64
|
|||||||
java/awt/image/multiresolution/MultiResolutionJOptionPaneIconTest.java 8274106 macosx-aarch64
|
java/awt/image/multiresolution/MultiResolutionJOptionPaneIconTest.java 8274106 macosx-aarch64
|
||||||
javax/swing/JFrame/8175301/ScaledFrameBackgroundTest.java 8274106 macosx-aarch64
|
javax/swing/JFrame/8175301/ScaledFrameBackgroundTest.java 8274106 macosx-aarch64
|
||||||
|
|
||||||
java/awt/Mouse/EnterExitEvents/DragWindowTest.java 8297296 macosx-all
|
|
||||||
javax/swing/JFileChooser/8046391/bug8046391.java 8293862 windows-x64
|
javax/swing/JFileChooser/8046391/bug8046391.java 8293862 windows-x64
|
||||||
javax/swing/JFileChooser/4847375/bug4847375.java 8293862 windows-x64
|
javax/swing/JFileChooser/4847375/bug4847375.java 8293862 windows-x64
|
||||||
java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java 8280392 windows-x64
|
java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java 8280392 windows-x64
|
||||||
|
@ -34,11 +34,23 @@
|
|||||||
* @run main DragWindowTest
|
* @run main DragWindowTest
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.BorderLayout;
|
||||||
import java.awt.event.*;
|
import java.awt.Component;
|
||||||
import javax.swing.*;
|
import java.awt.Rectangle;
|
||||||
|
import java.awt.Robot;
|
||||||
|
import java.awt.Panel;
|
||||||
|
import java.awt.Point;
|
||||||
|
import java.awt.Window;
|
||||||
|
import java.awt.event.InputEvent;
|
||||||
|
import java.awt.event.MouseAdapter;
|
||||||
|
import java.awt.event.MouseEvent;
|
||||||
|
import javax.swing.JFrame;
|
||||||
|
import javax.swing.JLabel;
|
||||||
|
import javax.swing.JButton;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.SwingUtilities;
|
||||||
|
|
||||||
import java.util.concurrent.*;
|
import java.util.concurrent.Callable;
|
||||||
|
|
||||||
import test.java.awt.regtesthelpers.Util;
|
import test.java.awt.regtesthelpers.Util;
|
||||||
|
|
||||||
@ -55,7 +67,7 @@ public class DragWindowTest {
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
|
|
||||||
Robot robot = new Robot();
|
Robot robot = new Robot();
|
||||||
robot.setAutoDelay(50);
|
robot.setAutoDelay(100);
|
||||||
|
|
||||||
SwingUtilities.invokeAndWait(new Runnable() {
|
SwingUtilities.invokeAndWait(new Runnable() {
|
||||||
|
|
||||||
@ -65,6 +77,7 @@ public class DragWindowTest {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
robot.delay(250);
|
||||||
robot.waitForIdle();
|
robot.waitForIdle();
|
||||||
|
|
||||||
Point pointToClick = Util.invokeOnEDT(new Callable<Point>() {
|
Point pointToClick = Util.invokeOnEDT(new Callable<Point>() {
|
||||||
@ -134,6 +147,7 @@ public class DragWindowTest {
|
|||||||
panel.add(button, BorderLayout.CENTER);
|
panel.add(button, BorderLayout.CENTER);
|
||||||
|
|
||||||
frame.getContentPane().add(panel);
|
frame.getContentPane().add(panel);
|
||||||
|
frame.setLocationRelativeTo(null);
|
||||||
frame.setVisible(true);
|
frame.setVisible(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user