From 017d4c1dc77c4e7d4b5b4e2f9ca4ad60217a0591 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 22 Oct 2011 15:58:11 +0200 Subject: Test/Focus: Add sleep for manual focus tests --- .../jogamp/opengl/test/junit/newt/TestFocus01SwingAWTRobot.java | 4 +++- .../jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src/test/com/jogamp') diff --git a/src/test/com/jogamp/opengl/test/junit/newt/TestFocus01SwingAWTRobot.java b/src/test/com/jogamp/opengl/test/junit/newt/TestFocus01SwingAWTRobot.java index 2afe2ebd2..13653b907 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/TestFocus01SwingAWTRobot.java +++ b/src/test/com/jogamp/opengl/test/junit/newt/TestFocus01SwingAWTRobot.java @@ -57,7 +57,7 @@ import com.jogamp.opengl.test.junit.util.*; public class TestFocus01SwingAWTRobot extends UITestCase { static int width, height; - static long durationPerTest = 800; + static long durationPerTest = 10; static long awtWaitTimeout = 1000; static GLCapabilities glCaps; @@ -130,6 +130,8 @@ public class TestFocus01SwingAWTRobot extends UITestCase { frame1.setVisible(true); Assert.assertTrue(AWTRobotUtil.toFront(robot, frame1)); + Thread.sleep(durationPerTest); // manual testing + int wait=0; while(wait