8233564: [TESTBUG] MouseComboBoxTest.java is failing

Reviewed-by: jdv
This commit is contained in:
Prasanta Sadhukhan 2021-04-15 10:14:37 +00:00
parent 2b5869ad09
commit b72d99e77b
2 changed files with 5 additions and 3 deletions

View File

@ -517,7 +517,6 @@ java/awt/TextArea/AutoScrollOnSelectAndAppend/AutoScrollOnSelectAndAppend.java 8
java/awt/GraphicsDevice/DisplayModes/CycleDMImage.java 7099223 linux-all,windows-all
java/awt/Window/WindowResizing/DoubleClickTitleBarTest.java 8233557 macosx-all
java/awt/Window/WindowOwnedByEmbeddedFrameTest/WindowOwnedByEmbeddedFrameTest.java 8233558 macosx-all
java/awt/Mouse/MouseComboBoxTest/MouseComboBoxTest.java 8233564 macosx-all
java/awt/keyboard/AllKeyCode/AllKeyCode.java 8242930 macosx-all
java/awt/FullScreen/8013581/bug8013581.java 8169471 macosx-all
java/awt/event/MouseEvent/RobotLWTest/RobotLWTest.java 8233568 macosx-all

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -47,7 +47,7 @@ public class MouseComboBoxTest {
public static void main(String[] args) throws Exception {
robot = new Robot();
robot.setAutoDelay(50);
robot.setAutoDelay(100);
UIManager.setLookAndFeel(new MetalLookAndFeel());
SwingUtilities.invokeAndWait(new Runnable() {
@ -57,6 +57,7 @@ public class MouseComboBoxTest {
}
});
robot.waitForIdle();
robot.delay(1000);
for (int i = 0; i < items.length; i++) {
// Open popup
@ -116,6 +117,7 @@ public class MouseComboBoxTest {
comboBoxUI = new MyComboBoxUI();
comboBox.setUI(comboBoxUI);
frame.setUndecorated(true);
frame.pack();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
@ -123,6 +125,7 @@ public class MouseComboBoxTest {
JWindow window = new JWindow(frame);
window.add(comboBox);
window.pack();
window.setLocationRelativeTo(null);
window.setVisible(true);
}