提交 c89a6f57 编写于 作者: J jgodinez

6862652: A number of tests fail for some background Themes configured on...

6862652: A number of tests fail for some background Themes configured on Windows7 & Windows 2008R2 in 6u15
Reviewed-by: igor, prr
上级 0bdca130
...@@ -84,6 +84,9 @@ public class InsetClipping extends Frame { ...@@ -84,6 +84,9 @@ public class InsetClipping extends Frame {
Thread.sleep(100); Thread.sleep(100);
} catch (Exception e) {} } catch (Exception e) {}
} }
try {
Thread.sleep(2000);
} catch (InterruptedException ex) {}
try { try {
Robot robot = new Robot(); Robot robot = new Robot();
Point clientLoc = clipTest.getLocationOnScreen(); Point clientLoc = clipTest.getLocationOnScreen();
......
...@@ -56,6 +56,9 @@ public class DrawImageBilinear extends Canvas { ...@@ -56,6 +56,9 @@ public class DrawImageBilinear extends Canvas {
private VolatileImage vimg; private VolatileImage vimg;
private static volatile BufferedImage capture; private static volatile BufferedImage capture;
private static void doCapture(Component test) { private static void doCapture(Component test) {
try {
Thread.sleep(2000);
} catch (InterruptedException ex) {}
// Grab the screen region // Grab the screen region
try { try {
Robot robot = new Robot(); Robot robot = new Robot();
......
...@@ -204,6 +204,9 @@ public class SourceClippingBlitTest extends Canvas { ...@@ -204,6 +204,9 @@ public class SourceClippingBlitTest extends Canvas {
int w = getWidth(); int w = getWidth();
int h = getHeight(); int h = getHeight();
Toolkit.getDefaultToolkit().sync(); Toolkit.getDefaultToolkit().sync();
try {
Thread.sleep(2000);
} catch (InterruptedException ex) {}
Point p = getLocationOnScreen(); Point p = getLocationOnScreen();
grabbedBI = robot.createScreenCapture(new Rectangle(p.x, p.y, w, h)); grabbedBI = robot.createScreenCapture(new Rectangle(p.x, p.y, w, h));
......
...@@ -120,6 +120,9 @@ public class SharedMemoryPixmapsTest { ...@@ -120,6 +120,9 @@ public class SharedMemoryPixmapsTest {
} }
private boolean testRendering() throws RuntimeException { private boolean testRendering() throws RuntimeException {
try {
Thread.sleep(2000);
} catch (InterruptedException ex) {}
Robot r = null; Robot r = null;
try { try {
r = new Robot(); r = new Robot();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册