8153282: [TEST_BUG] some new JInternalFrame tests fail
authorrchamyal
Tue, 24 May 2016 14:30:31 +0530
changeset 38994 a6b14a17689b
parent 38993 028440a03621
child 38995 c1812168a1e9
8153282: [TEST_BUG] some new JInternalFrame tests fail Reviewed-by: alexsch, serb
jdk/test/javax/swing/JInternalFrame/6288609/TestJInternalFrameDispose.java
jdk/test/javax/swing/JInternalFrame/8145060/TestJInternalFrameMinimize.java
jdk/test/javax/swing/JInternalFrame/8145896/TestJInternalFrameMaximize.java
--- a/jdk/test/javax/swing/JInternalFrame/6288609/TestJInternalFrameDispose.java	Tue May 24 14:23:36 2016 +0530
+++ b/jdk/test/javax/swing/JInternalFrame/6288609/TestJInternalFrameDispose.java	Tue May 24 14:30:31 2016 +0530
@@ -67,6 +67,7 @@
 
         robot.waitForIdle();
         executeTest();
+        robot.delay(1000);
         dispose();
     }
 
--- a/jdk/test/javax/swing/JInternalFrame/8145060/TestJInternalFrameMinimize.java	Tue May 24 14:23:36 2016 +0530
+++ b/jdk/test/javax/swing/JInternalFrame/8145060/TestJInternalFrameMinimize.java	Tue May 24 14:30:31 2016 +0530
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015,2016, 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
@@ -155,7 +155,7 @@
                 };
             }
         });
-        timer = new Timer(100, listener);
+        timer = new Timer(1000, listener);
         timer.start();
         robot.delay(1000);
     }
--- a/jdk/test/javax/swing/JInternalFrame/8145896/TestJInternalFrameMaximize.java	Tue May 24 14:23:36 2016 +0530
+++ b/jdk/test/javax/swing/JInternalFrame/8145896/TestJInternalFrameMaximize.java	Tue May 24 14:30:31 2016 +0530
@@ -65,6 +65,7 @@
                 createUI();
                 robot.waitForIdle();
                 executeTest();
+                robot.delay(1000);
             }
         }
         if (!"".equals(errorMessage)) {