6862652: A number of tests fail for some background Themes configured on Windows7 & Windows 2008R2 in 6u15
authorjgodinez
Mon, 15 Nov 2010 14:16:05 -0800
changeset 7148 578a6908fd06
parent 7147 761dca0ccb57
child 7156 96c6a9a2b2c6
child 7233 e560b64571c7
6862652: A number of tests fail for some background Themes configured on Windows7 & Windows 2008R2 in 6u15 Reviewed-by: igor, prr
jdk/test/sun/java2d/GdiRendering/InsetClipping.java
jdk/test/sun/java2d/SunGraphics2D/DrawImageBilinear.java
jdk/test/sun/java2d/SunGraphics2D/SourceClippingBlitTest/SourceClippingBlitTest.java
jdk/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.java
--- a/jdk/test/sun/java2d/GdiRendering/InsetClipping.java	Thu Nov 11 18:46:02 2010 -0800
+++ b/jdk/test/sun/java2d/GdiRendering/InsetClipping.java	Mon Nov 15 14:16:05 2010 -0800
@@ -85,6 +85,9 @@
             } catch (Exception e) {}
         }
         try {
+            Thread.sleep(2000);
+        } catch (InterruptedException ex) {}
+        try {
             Robot robot = new Robot();
             Point clientLoc = clipTest.getLocationOnScreen();
             Insets insets = clipTest.getInsets();
--- a/jdk/test/sun/java2d/SunGraphics2D/DrawImageBilinear.java	Thu Nov 11 18:46:02 2010 -0800
+++ b/jdk/test/sun/java2d/SunGraphics2D/DrawImageBilinear.java	Mon Nov 15 14:16:05 2010 -0800
@@ -56,6 +56,9 @@
     private VolatileImage vimg;
     private static volatile BufferedImage capture;
     private static void doCapture(Component test) {
+        try {
+            Thread.sleep(2000);
+        } catch (InterruptedException ex) {}
         // Grab the screen region
         try {
             Robot robot = new Robot();
--- a/jdk/test/sun/java2d/SunGraphics2D/SourceClippingBlitTest/SourceClippingBlitTest.java	Thu Nov 11 18:46:02 2010 -0800
+++ b/jdk/test/sun/java2d/SunGraphics2D/SourceClippingBlitTest/SourceClippingBlitTest.java	Mon Nov 15 14:16:05 2010 -0800
@@ -204,6 +204,9 @@
         int w = getWidth();
         int h = getHeight();
         Toolkit.getDefaultToolkit().sync();
+        try {
+            Thread.sleep(2000);
+        } catch (InterruptedException ex) {}
         Point p = getLocationOnScreen();
         grabbedBI = robot.createScreenCapture(new Rectangle(p.x, p.y, w, h));
 
--- a/jdk/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.java	Thu Nov 11 18:46:02 2010 -0800
+++ b/jdk/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.java	Mon Nov 15 14:16:05 2010 -0800
@@ -120,6 +120,9 @@
         }
 
         private boolean testRendering() throws RuntimeException {
+            try {
+                Thread.sleep(2000);
+            } catch (InterruptedException ex) {}
             Robot r = null;
             try {
                 r = new Robot();