提交 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 {
Thread.sleep(100);
} catch (Exception e) {}
}
try {
Thread.sleep(2000);
} catch (InterruptedException ex) {}
try {
Robot robot = new Robot();
Point clientLoc = clipTest.getLocationOnScreen();
......
......@@ -56,6 +56,9 @@ public class DrawImageBilinear extends Canvas {
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();
......
......@@ -204,6 +204,9 @@ public class SourceClippingBlitTest extends Canvas {
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));
......
......@@ -120,6 +120,9 @@ public class SharedMemoryPixmapsTest {
}
private boolean testRendering() throws RuntimeException {
try {
Thread.sleep(2000);
} catch (InterruptedException ex) {}
Robot r = null;
try {
r = new Robot();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册