8081478: [TESTBUG] Test javax/swing/plaf/synth/SynthButtonUI/6276188/bug6276188.java fails for OEL 7 only
authorssadetsky
Thu, 20 Apr 2017 08:23:10 -0700
changeset 44775 f9c5f5f38a6a
parent 44771 2ae94a74c972
child 44776 5fcc7728c117
8081478: [TESTBUG] Test javax/swing/plaf/synth/SynthButtonUI/6276188/bug6276188.java fails for OEL 7 only Reviewed-by: yan, serb, alexsch
jdk/test/javax/swing/plaf/synth/SynthButtonUI/6276188/bug6276188.java
--- a/jdk/test/javax/swing/plaf/synth/SynthButtonUI/6276188/bug6276188.java	Mon Apr 17 09:08:38 2017 -0700
+++ b/jdk/test/javax/swing/plaf/synth/SynthButtonUI/6276188/bug6276188.java	Thu Apr 20 08:23:10 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2017 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
@@ -59,10 +59,12 @@
             }
         });
 
-        p = Util.getCenterPoint(button);
-
         Robot robot = new Robot();
         robot.setAutoDelay(50);
+        robot.waitForIdle();
+        robot.delay(200);
+
+        p = Util.getCenterPoint(button);
 
         robot.mouseMove(p.x , p.y);
         robot.mousePress(InputEvent.BUTTON1_MASK);