Skip to content
Permalink
Browse files
8233564: [TESTBUG] MouseComboBoxTest.java is failing
Reviewed-by: jdv
  • Loading branch information
prsadhuk committed Apr 15, 2021
1 parent 2b5869a commit b72d99e77b71e495fe66026f692f28d5407235ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
@@ -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
@@ -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 void run() {
}
});
robot.waitForIdle();
robot.delay(1000);

for (int i = 0; i < items.length; i++) {
// Open popup
@@ -116,13 +117,15 @@ private static void createAndShowGUI() {
comboBoxUI = new MyComboBoxUI();
comboBox.setUI(comboBoxUI);

frame.setUndecorated(true);
frame.pack();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);

JWindow window = new JWindow(frame);
window.add(comboBox);
window.pack();
window.setLocationRelativeTo(null);
window.setVisible(true);
}

1 comment on commit b72d99e

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on b72d99e Apr 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.