diff options
author | Sven Gothel <[email protected]> | 2011-09-16 12:40:46 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-16 12:40:46 +0200 |
commit | e228acfcf5be36fb161043bb2ae21f8d60bc6ca4 (patch) | |
tree | b1e6d96b062f96dd1f857f96a04b85fcf76f85d7 /src/test | |
parent | aca09874bd3abe651f88ead28154fa2feefbd6a6 (diff) |
NEWT Cleanup: AWT driver fix, WindowImpl createNative .., minor edits
AWT driver fix
- setVisible at creation, using reconfigureWindow impl (fixed
WindowImpl createNative ..,
- no double visibility check on creation
- visible:=true anyway for later creation, if failed or not available yet
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java | 13 | ||||
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/util/AWTRobotUtil.java | 1 |
2 files changed, 1 insertions, 13 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java b/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java index dd1827102..78f2f4574 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java +++ b/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java @@ -58,9 +58,7 @@ import com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2; public class TestFocus02SwingAWTRobot extends UITestCase { static int width, height; - static long durationPerTest = 800; static long awtWaitTimeout = 1000; - static long waitReparent = 0; static GLCapabilities glCaps; @BeforeClass @@ -161,7 +159,7 @@ public class TestFocus02SwingAWTRobot extends UITestCase { Assert.assertTrue(AWTRobotUtil.toFront(robot, jFrame1)); int wait=0; - while(wait<awtWaitTimeout/100 && glWindow1.getTotalFPSFrames()<1) { Thread.sleep(awtWaitTimeout/10); wait++; } + while(wait<awtWaitTimeout/10 && glWindow1.getTotalFPSFrames()<1) { Thread.sleep(awtWaitTimeout/100); wait++; } System.err.println("Frames for initial setVisible(true): "+glWindow1.getTotalFPSFrames()); Assert.assertTrue(glWindow1.isVisible()); Assert.assertTrue(0 < glWindow1.getTotalFPSFrames()); @@ -285,15 +283,6 @@ public class TestFocus02SwingAWTRobot extends UITestCase { public static void main(String args[]) throws IOException, AWTException, InterruptedException, InvocationTargetException { - for(int i=0; i<args.length; i++) { - if(args[i].equals("-time")) { - durationPerTest = atoi(args[++i]); - } else if(args[i].equals("-wait")) { - waitReparent = atoi(args[++i]); - } - } - System.err.println("durationPerTest "+durationPerTest); - System.err.println("waitReparent "+waitReparent); if(true) { String tstname = TestFocus02SwingAWTRobot.class.getName(); org.junit.runner.JUnitCore.main(tstname); diff --git a/src/test/com/jogamp/opengl/test/junit/util/AWTRobotUtil.java b/src/test/com/jogamp/opengl/test/junit/util/AWTRobotUtil.java index af3c771f3..661d58bb1 100644 --- a/src/test/com/jogamp/opengl/test/junit/util/AWTRobotUtil.java +++ b/src/test/com/jogamp/opengl/test/junit/util/AWTRobotUtil.java @@ -39,7 +39,6 @@ import java.awt.Point; import java.awt.Rectangle; import java.awt.Robot; import java.awt.Toolkit; -import java.awt.event.InputEvent; import javax.media.opengl.awt.GLCanvas; import javax.swing.JFrame; |