aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-11-25 03:10:00 +0100
committerSven Gothel <[email protected]>2011-11-25 03:10:00 +0100
commit89646c4232e846d99bb47b8164722d650c93d99a (patch)
treebe52c3dfbc0c7fef011d10e878f89a2e38c3bcd0 /src/test
parentc59ac4647b6084181ce17cc594e9343ebe8f6d56 (diff)
Minor test changes
Diffstat (limited to 'src/test')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/awt/TestGearsAWT.java4
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting03AWT.java2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/awt/TestGearsAWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/awt/TestGearsAWT.java
index 83e3663dc..6474bb5f6 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/awt/TestGearsAWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/demos/gl2/awt/TestGearsAWT.java
@@ -50,9 +50,11 @@ import org.junit.Test;
public class TestGearsAWT extends UITestCase {
static GLProfile glp;
static int width, height;
+ static boolean firstUIActionOnProcess = false;
@BeforeClass
public static void initClass() {
+ GLProfile.initSingleton(firstUIActionOnProcess);
glp = GLProfile.getDefault();
Assert.assertNotNull(glp);
width = 512;
@@ -117,6 +119,8 @@ public class TestGearsAWT extends UITestCase {
try {
duration = Integer.parseInt(args[i]);
} catch (Exception ex) { ex.printStackTrace(); }
+ } else if(args[i].equals("-firstUIAction")) {
+ firstUIActionOnProcess = true;
}
}
org.junit.runner.JUnitCore.main(TestGearsAWT.class.getName());
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting03AWT.java b/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting03AWT.java
index 8f0da4000..b33a40fae 100644
--- a/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting03AWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting03AWT.java
@@ -54,7 +54,7 @@ import com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2;
public class TestParenting03AWT extends UITestCase {
static Dimension glSize, fSize;
- static long durationPerTest = 800;
+ static long durationPerTest = 1100;
static long waitAdd2nd = 500;
static GLCapabilities glCaps;