changeset 17041:8ec1d93d7ff5

8081478: [TESTBUG] Test javax/swing/plaf/synth/SynthButtonUI/6276188/bug6276188.java fails for OEL 7 only Reviewed-by: yan, serb, alexsch
author ssadetsky
date Thu, 20 Apr 2017 08:23:10 -0700
parents f11efef2d1f3
children 76ca2c1a2abd
files test/javax/swing/plaf/synth/SynthButtonUI/6276188/bug6276188.java
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/javax/swing/plaf/synth/SynthButtonUI/6276188/bug6276188.java	Mon Apr 17 09:08:38 2017 -0700
+++ b/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);