changeset 60591:27a6f92a0f5f

8226230: Test javax/swing/JInternalFrame/8020708/bug8020708.java fails on Ubuntu Reviewed-by: serb
author psadhukhan
date Thu, 19 Mar 2020 09:20:06 +0530
parents ff66c5acbe68
children 44f4d1256298
files test/jdk/javax/swing/JInternalFrame/8020708/bug8020708.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/javax/swing/JInternalFrame/8020708/bug8020708.java	Wed Mar 18 15:48:53 2020 -0700
+++ b/test/jdk/javax/swing/JInternalFrame/8020708/bug8020708.java	Thu Mar 19 09:20:06 2020 +0530
@@ -87,6 +87,8 @@
             public void run() {
                 frame = new JFrame("Test");
                 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+                frame.setUndecorated(true);
+                frame.setLocationRelativeTo(null);
                 frame.setSize(300, 200);
 
                 JDesktopPane desktop = new JDesktopPane();
@@ -132,6 +134,7 @@
                 frame.dispose();
             }
         });
+        robot.delay(500);
     }
 
     static final boolean installLookAndFeel(String lafName) throws Exception {