6862652: A number of tests fail for some background Themes configured on Windows7 & Windows 2008R2 in 6u15
Reviewed-by: igor, prr
--- 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();