aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-09-03 18:14:08 +0200
committerSven Gothel <[email protected]>2015-09-03 18:14:08 +0200
commit34d54a9af4413eab840ef9055400e2f5845b4f3a (patch)
tree293cb2dc9dabaaca5fbb40a7369934a09947a0a1 /src
parentd04841599ab2ed181f081ff7fdd38ac4ef65ca34 (diff)
Bug 1211: Custom size for TestBug1211IRQ00NEWT
Tested on GNU/Linux desktop machines (also our test node w/ nvidia, producing the issue sometimes) with jre8, jre7 and jre6. No interruption detected .. sadly.
Diffstat (limited to 'src')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/TestBug1211IRQ00NEWT.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/TestBug1211IRQ00NEWT.java b/src/test/com/jogamp/opengl/test/junit/newt/TestBug1211IRQ00NEWT.java
index b45d696f0..33f119b6f 100644
--- a/src/test/com/jogamp/opengl/test/junit/newt/TestBug1211IRQ00NEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/newt/TestBug1211IRQ00NEWT.java
@@ -60,6 +60,8 @@ public class TestBug1211IRQ00NEWT extends UITestCase {
static GLProfile glp;
static long durationTest00 = 1000; // ms
static long durationTest01 = 1000; // ms
+ static int width = 800;
+ static int height = 600;
@BeforeClass
public static void initClass() {
@@ -86,7 +88,7 @@ public class TestBug1211IRQ00NEWT extends UITestCase {
demo.setVerbose(false);
glWindow.addGLEventListener(demo);
- glWindow.setSize(512, 512);
+ glWindow.setSize(width, height);
return glWindow;
}
@@ -218,13 +220,17 @@ public class TestBug1211IRQ00NEWT extends UITestCase {
for(int i=0; i<args.length; i++) {
if(args[i].equals("-time00")) {
durationTest00 = atoi(args[++i]);
- }
- if(args[i].equals("-time01")) {
+ } else if(args[i].equals("-time01")) {
durationTest01 = atoi(args[++i]);
+ } else if(args[i].equals("-width")) {
+ width = atoi(args[++i]);
+ } else if(args[i].equals("-height")) {
+ height = atoi(args[++i]);
}
}
System.out.println("durationTest00: "+durationTest00);
System.out.println("durationTest01: "+durationTest01);
+ System.out.println("defaultSize : "+width+"x"+height);
final String tstname = TestBug1211IRQ00NEWT.class.getName();
org.junit.runner.JUnitCore.main(tstname);
}