aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Prasanta Sadhukhan <psadhukhan@openjdk.org> 2021-04-15 10:14:37 +0000
committerGravatar Prasanta Sadhukhan <psadhukhan@openjdk.org> 2021-04-15 10:14:37 +0000
commitb72d99e77b71e495fe66026f692f28d5407235ce (patch)
tree149528c5a1d513c3c7c20ea30ad30636467fb88b
parent2b5869ad09e8f34277a4c965abbaed3f79fc5b59 (diff)
downloadjdk-b72d99e77b71e495fe66026f692f28d5407235ce.tar.gz
jdk-b72d99e77b71e495fe66026f692f28d5407235ce.zip
8233564: [TESTBUG] MouseComboBoxTest.java is failing
Reviewed-by: jdv
-rw-r--r--test/jdk/ProblemList.txt1
-rw-r--r--test/jdk/java/awt/Mouse/MouseComboBoxTest/MouseComboBoxTest.java7
2 files changed, 5 insertions, 3 deletions
diff --git a/test/jdk/ProblemList.txt b/test/jdk/ProblemList.txt
index acf221b5ae1..b2d29ea71e1 100644
--- a/test/jdk/ProblemList.txt
+++ b/test/jdk/ProblemList.txt
@@ -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
diff --git a/test/jdk/java/awt/Mouse/MouseComboBoxTest/MouseComboBoxTest.java b/test/jdk/java/awt/Mouse/MouseComboBoxTest/MouseComboBoxTest.java
index 3c4eb32998f..9cfcc75b910 100644
--- a/test/jdk/java/awt/Mouse/MouseComboBoxTest/MouseComboBoxTest.java
+++ b/test/jdk/java/awt/Mouse/MouseComboBoxTest/MouseComboBoxTest.java
@@ -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);
}