summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextListNEWT.java9
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/TestFocus01SwingAWTRobot.java8
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/TestScreenMode00bNEWT.java2
3 files changed, 13 insertions, 6 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextListNEWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextListNEWT.java
index 73a227740..a37b4cc61 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextListNEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/acore/TestSharedContextListNEWT.java
@@ -28,10 +28,11 @@
package com.jogamp.opengl.test.junit.jogl.acore;
+import java.io.IOException;
+
import com.jogamp.newt.opengl.GLWindow;
import javax.media.nativewindow.util.InsetsImmutable;
-import javax.media.opengl.FPSCounter;
import javax.media.opengl.GLCapabilities;
import javax.media.opengl.GLDrawableFactory;
import javax.media.opengl.GLPbuffer;
@@ -133,7 +134,7 @@ public class TestSharedContextListNEWT extends UITestCase {
static long duration = 500; // ms
- public static void main(String args[]) {
+ public static void main(String args[]) throws IOException {
for(int i=0; i<args.length; i++) {
if(args[i].equals("-time")) {
i++;
@@ -142,6 +143,10 @@ public class TestSharedContextListNEWT extends UITestCase {
} catch (Exception ex) { ex.printStackTrace(); }
}
}
+ /**
+ BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
+ System.err.println("Press enter to continue");
+ System.err.println(stdin.readLine()); */
org.junit.runner.JUnitCore.main(TestSharedContextListNEWT.class.getName());
}
}
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 1c7689b92..173cae12b 100644
--- a/src/test/com/jogamp/opengl/test/junit/newt/TestFocus01SwingAWTRobot.java
+++ b/src/test/com/jogamp/opengl/test/junit/newt/TestFocus01SwingAWTRobot.java
@@ -206,9 +206,11 @@ public class TestFocus01SwingAWTRobot extends UITestCase {
durationPerTest = atoi(args[++i]);
}
}
- // BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
- // System.err.println("Press enter to continue");
- // System.err.println(stdin.readLine());
+ /**
+ BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
+ System.err.println("Press enter to continue");
+ System.err.println(stdin.readLine());
+ */
System.out.println("durationPerTest: "+durationPerTest);
String tstname = TestFocus01SwingAWTRobot.class.getName();
org.junit.runner.JUnitCore.main(tstname);
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/TestScreenMode00bNEWT.java b/src/test/com/jogamp/opengl/test/junit/newt/TestScreenMode00bNEWT.java
index a2d7d09bb..15b3740a2 100644
--- a/src/test/com/jogamp/opengl/test/junit/newt/TestScreenMode00bNEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/newt/TestScreenMode00bNEWT.java
@@ -96,7 +96,7 @@ public class TestScreenMode00bNEWT extends UITestCase {
System.err.println("orig: "+sm_o);
System.err.println("curr: "+sm_c);
- for(i=0; i<1000; i++) {
+ for(i=0; i<100; i++) {
sm_c = screen.getCurrentScreenMode();
Assert.assertNotNull(sm_c);
System.err.print(".");