jdk/test/java/awt/dnd/Button2DragTest/Button2DragTest.java
changeset 23263 dcf3b071fc36
parent 5506 202f599c92aa
child 38383 c76fffbf4ef5
equal deleted inserted replaced
23262:41f2413bba45 23263:dcf3b071fc36
     1 /*
     1 /*
     2  * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   110         endPoint.translate(150, 150);
   110         endPoint.translate(150, 150);
   111 
   111 
   112         Util.drag(robot, startPoint, endPoint, InputEvent.BUTTON2_MASK);
   112         Util.drag(robot, startPoint, endPoint, InputEvent.BUTTON2_MASK);
   113 
   113 
   114         Util.waitForIdle(robot);
   114         Util.waitForIdle(robot);
       
   115         robot.delay(500);
   115 
   116 
   116         if (dropSuccess) {
   117         if (dropSuccess) {
   117             System.err.println("test passed");
   118             System.err.println("test passed");
   118         } else {
   119         } else {
   119             throw new RuntimeException("test failed: drop was not successful");
   120             throw new RuntimeException("test failed: drop was not successful");