From 83b05373a1fe68e1bc83f989ca783b2cdf2e5e33 Mon Sep 17 00:00:00 2001 From: Sergey Bylokhov Date: Sat, 19 Sep 2020 22:22:43 +0000 Subject: [PATCH] 8253291: bug7072653.java still failed "Popup window height ... is wrong" Reviewed-by: prr --- .../swing/plaf/basic/BasicComboPopup/7072653/bug7072653.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/jdk/javax/swing/plaf/basic/BasicComboPopup/7072653/bug7072653.java b/test/jdk/javax/swing/plaf/basic/BasicComboPopup/7072653/bug7072653.java index 78160283a4a..031aac8e01b 100644 --- a/test/jdk/javax/swing/plaf/basic/BasicComboPopup/7072653/bug7072653.java +++ b/test/jdk/javax/swing/plaf/basic/BasicComboPopup/7072653/bug7072653.java @@ -112,6 +112,8 @@ public class bug7072653 { combobox.putClientProperty("JComboBox.isPopDown", true); frame.getContentPane().add(combobox); frame.setVisible(true); + robot.delay(3000); // wait some time to stabilize the size of the + // screen insets after the window is shown combobox.addPopupMenuListener(new PopupMenuListener() { @Override public void popupMenuWillBecomeVisible(PopupMenuEvent e) {