--- old/test/java/awt/GridLayout/ChangeGridSize/ChangeGridSize.java 2016-07-20 13:07:57.345097815 +0530 +++ new/test/java/awt/GridLayout/ChangeGridSize/ChangeGridSize.java 2016-07-20 13:07:56.805097815 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 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 @@ -33,14 +33,13 @@ * depending on the preferred sizes and gaps and click the cornors * of the components to check if events are triggered * @library ../../../../lib/testlibrary/ - * @build ExtendedRobot * @run main ChangeGridSize * @run main ChangeGridSize -hg 20 -vg 20 */ public class ChangeGridSize { - private int width = 200; + private int width = 300; private int height = 200; private final int hGap, vGap; private final int rows = 3; @@ -50,7 +49,7 @@ private Button[] buttons; private Frame frame; - private ExtendedRobot robot; + private Robot robot; private GridLayout layout; private volatile boolean actionPerformed = false; @@ -58,7 +57,7 @@ public ChangeGridSize(int hGap, int vGap) throws Exception { this.hGap = hGap; this.vGap = vGap; - robot = new ExtendedRobot(); + robot = new Robot(); EventQueue.invokeAndWait( () -> { frame = new Frame("Test frame"); frame.setSize(width, height); @@ -122,7 +121,7 @@ robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); robot.delay(500); robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); - robot.waitForIdle(3000); + robot.delay(3000); if(!actionPerformed) throw new RuntimeException("Clicking on the left top of button did not trigger action event"); @@ -133,7 +132,7 @@ robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); robot.delay(500); robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); - robot.waitForIdle(3000); + robot.delay(3000); if(!actionPerformed) throw new RuntimeException("Clicking on the bottom right of button did not trigger action event"); --- old/test/java/awt/GridLayout/ComponentPreferredSize/ComponentPreferredSize.java 2016-07-20 13:07:58.789097815 +0530 +++ new/test/java/awt/GridLayout/ComponentPreferredSize/ComponentPreferredSize.java 2016-07-20 13:07:58.205097815 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 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 @@ -33,14 +33,13 @@ * depending on the preferred sizes and gaps and click the cornors * of the components to check if events are triggered * @library ../../../../lib/testlibrary/ - * @build ExtendedRobot * @run main ComponentPreferredSize * @run main ComponentPreferredSize -hg 20 -vg 20 */ public class ComponentPreferredSize { - private int width = 200; + private int width = 300; private int height = 200; private final int hGap, vGap; private final int rows = 3; @@ -50,7 +49,7 @@ private Button[] buttons; private Frame frame; - private ExtendedRobot robot; + private Robot robot; private GridLayout layout; private volatile boolean actionPerformed = false; @@ -58,7 +57,7 @@ public ComponentPreferredSize(int hGap, int vGap) throws Exception { this.hGap = hGap; this.vGap = vGap; - robot = new ExtendedRobot(); + robot = new Robot(); EventQueue.invokeAndWait( () -> { frame = new Frame("Test frame"); frame.setSize(width, height); @@ -115,7 +114,7 @@ robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); robot.delay(500); robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); - robot.waitForIdle(3000); + robot.delay(3000); if(!actionPerformed) throw new RuntimeException("Clicking on the left top of button did not trigger action event"); @@ -126,7 +125,7 @@ robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); robot.delay(500); robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); - robot.waitForIdle(3000); + robot.delay(3000); if(!actionPerformed) throw new RuntimeException("Clicking on the bottom right of button did not trigger action event");