--- old/test/java/awt/dnd/DisposeFrameOnDragCrash/DisposeFrameOnDragTest.java 2016-04-14 17:06:43.353229819 +0530 +++ new/test/java/awt/dnd/DisposeFrameOnDragCrash/DisposeFrameOnDragTest.java 2016-04-14 17:06:43.181315819 +0530 @@ -56,17 +56,24 @@ } }); - Util.waitForIdle(null); + Robot testRobot = null; try { - Point loc = textArea.getLocationOnScreen(); - Util.drag(new Robot(), - new Point((int) loc.x + 3, (int) loc.y + 3), - new Point((int) loc.x + 40, (int) loc.y + 40), - InputEvent.BUTTON1_MASK); - } catch (AWTException ex) { - throw new RuntimeException("Could not initiate a drag operation"); + testRobot = new Robot(); + } catch(AWTException ex) { + throw new RuntimeException("Error while creating Robot"); } + + Util.waitForIdle(null); + + Point loc = textArea.getLocationOnScreen(); + Util.drag(testRobot, + new Point((int) loc.x + 3, (int) loc.y + 3), + new Point((int) loc.x + 40, (int) loc.y + 40), + InputEvent.BUTTON1_MASK); + Util.waitForIdle(null); + + testRobot.delay(200); } private static void constructTestUI() {