# HG changeset patch # User ssadetsky # Date 1492701790 25200 # Node ID f9c5f5f38a6aa3f3683277f9d2998a52e3165e15 # Parent 2ae94a74c9722c8ceecf4a5abcd02456b0815fef 8081478: [TESTBUG] Test javax/swing/plaf/synth/SynthButtonUI/6276188/bug6276188.java fails for OEL 7 only Reviewed-by: yan, serb, alexsch diff -r 2ae94a74c972 -r f9c5f5f38a6a 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);