6984543: Test sun/java2d/DirectX/OnScreenRenderingResizeTest fails on GNOME
authorptisnovs
Thu, 16 Sep 2010 13:25:20 +0200
changeset 6546 0ab9777645b5
parent 6545 9d2efd6ddd0c
child 6547 8dc9b6a31bbc
child 6664 979f457afd3a
6984543: Test sun/java2d/DirectX/OnScreenRenderingResizeTest fails on GNOME Summary: Testcase correction. Reviewed-by: art
jdk/test/sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java
--- a/jdk/test/sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java	Wed Sep 15 15:13:50 2010 +0100
+++ b/jdk/test/sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java	Thu Sep 16 13:25:20 2010 +0200
@@ -157,7 +157,7 @@
             if (cnt == 90 && robot != null) {
                 // area where we blitted to should be either white or green
                 Point p = frame.getLocationOnScreen();
-                p.move(in.left+10, in.top+10);
+                p.translate(in.left+10, in.top+10);
                 BufferedImage bi =
                     robot.createScreenCapture(
                         new Rectangle(p.x, p.y, IMAGE_W/2, IMAGE_H/2));
@@ -166,7 +166,7 @@
 
                 // the are where we didn't render should stay white
                 p = frame.getLocationOnScreen();
-                p.move(in.left, in.top+IMAGE_H+5);
+                p.translate(in.left, in.top+IMAGE_H+5);
                 bi = robot.createScreenCapture(
                     new Rectangle(p.x, p.y,
                                   frame.getWidth()-in.left-in.right,