From 4f4ea5d52744af69028b2471b4187ff12cf6c518 Mon Sep 17 00:00:00 2001 From: ptisnovs Date: Thu, 16 Sep 2010 13:25:20 +0200 Subject: [PATCH] 6984543: Test sun/java2d/DirectX/OnScreenRenderingResizeTest fails on GNOME Summary: Testcase correction. Reviewed-by: art --- .../OnScreenRenderingResizeTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdk/test/sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java b/jdk/test/sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java index 78b77390ac..c4c11c3560 100644 --- a/jdk/test/sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java +++ b/jdk/test/sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java @@ -157,7 +157,7 @@ public class OnScreenRenderingResizeTest { 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 @@ public class OnScreenRenderingResizeTest { // 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, -- GitLab