mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8028707: javax/swing/JComboBox/6236162/bug6236162.java fails on azure
Reviewed-by: serb, pbansal
This commit is contained in:
parent
83ea863122
commit
ce1aac1e13
@ -732,7 +732,6 @@ javax/swing/plaf/basic/BasicTextUI/8001470/bug8001470.java 8233177 linux-all,win
|
||||
javax/swing/border/TestTitledBorderLeak.java 8213531 linux-all
|
||||
javax/swing/JComponent/7154030/bug7154030.java 7190978 generic-all
|
||||
javax/swing/JComponent/6683775/bug6683775.java 8172337 generic-all
|
||||
javax/swing/JComboBox/6236162/bug6236162.java 8028707 windows-all,macosx-all
|
||||
javax/swing/JWindow/ShapedAndTranslucentWindows/ShapedTranslucentPerPixelTranslucentGradient.java 8233582 linux-all
|
||||
javax/swing/JWindow/ShapedAndTranslucentWindows/ShapedPerPixelTranslucentGradient.java 8233582 linux-all
|
||||
javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentSwing.java 8194128 macosx-all
|
||||
|
||||
@ -28,9 +28,6 @@
|
||||
* @summary Checks that there is no an inconsistence in combo box
|
||||
* behavior when user points an item in combo popup
|
||||
* by mouse and then uses UP/DOWN keys.
|
||||
* @library ../../regtesthelpers
|
||||
* @build Util
|
||||
* @author Mikhail Lapshin
|
||||
* @run main bug6236162
|
||||
*/
|
||||
|
||||
@ -44,8 +41,11 @@ public class bug6236162 {
|
||||
private static JFrame frame;
|
||||
private static JComboBox combo;
|
||||
private static MyComboUI comboUI;
|
||||
private static Robot robot;
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
robot = new Robot();
|
||||
robot.setAutoDelay(100);
|
||||
try {
|
||||
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
|
||||
SwingUtilities.invokeAndWait(new Runnable() {
|
||||
@ -53,6 +53,8 @@ public class bug6236162 {
|
||||
createAndShowGUI();
|
||||
}
|
||||
});
|
||||
robot.waitForIdle();
|
||||
robot.delay(1000);
|
||||
test();
|
||||
System.out.println("Test passed");
|
||||
} finally {
|
||||
@ -74,15 +76,14 @@ public class bug6236162 {
|
||||
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
frame.setLocationRelativeTo(null);
|
||||
frame.setVisible(true);
|
||||
frame.toFront();
|
||||
}
|
||||
|
||||
private static void test() throws AWTException {
|
||||
Robot robot = new Robot();
|
||||
robot.setAutoDelay(50);
|
||||
|
||||
// Open popup menu
|
||||
robot.waitForIdle();
|
||||
Util.hitKeys(robot, KeyEvent.VK_DOWN);
|
||||
robot.keyPress(KeyEvent.VK_DOWN);
|
||||
robot.keyRelease(KeyEvent.VK_DOWN);
|
||||
|
||||
// Move mouse to the first popup menu item
|
||||
robot.waitForIdle();
|
||||
@ -98,7 +99,8 @@ public class bug6236162 {
|
||||
|
||||
// Select the second popup menu item
|
||||
robot.waitForIdle();
|
||||
Util.hitKeys(robot, KeyEvent.VK_DOWN);
|
||||
robot.keyPress(KeyEvent.VK_DOWN);
|
||||
robot.keyRelease(KeyEvent.VK_DOWN);
|
||||
|
||||
robot.waitForIdle();
|
||||
JList list = comboUI.getComboPopup().getList();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user