changeset 3024:809ec4b6eb88

6862652: A number of tests fail for some background Themes configured on Windows7 & Windows 2008R2 in 6u15 Reviewed-by: igor, prr
author jgodinez
date Mon, 15 Nov 2010 14:16:05 -0800
parents 0fc9955d603f
children 60a5739f97c5 23a6ba383fd7
files test/sun/java2d/GdiRendering/InsetClipping.java test/sun/java2d/SunGraphics2D/DrawImageBilinear.java test/sun/java2d/SunGraphics2D/SourceClippingBlitTest/SourceClippingBlitTest.java test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.java
diffstat 4 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/java2d/GdiRendering/InsetClipping.java	Thu Nov 11 18:46:02 2010 -0800
+++ b/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/test/sun/java2d/SunGraphics2D/DrawImageBilinear.java	Thu Nov 11 18:46:02 2010 -0800
+++ b/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/test/sun/java2d/SunGraphics2D/SourceClippingBlitTest/SourceClippingBlitTest.java	Thu Nov 11 18:46:02 2010 -0800
+++ b/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/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.java	Thu Nov 11 18:46:02 2010 -0800
+++ b/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();