summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-07-10 02:27:29 +0200
committerSven Gothel <[email protected]>2013-07-10 02:27:29 +0200
commit214a426cf52c10519cf82e5fa00c4c76d1224379 (patch)
tree6434601fe997501f2908760e8aec461c580603d8
parent0a33012b4a9b3cdfd5b6d2f70752dab2faa44635 (diff)
TestGLWindows02NEWTAnimated: Give animator a chance to become paused after pulling GLAD from it.
-rw-r--r--make/scripts/tests.sh4
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/TestGLWindows02NEWTAnimated.java7
2 files changed, 9 insertions, 2 deletions
diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh
index bc37f2845..4e1c0dd52 100644
--- a/make/scripts/tests.sh
+++ b/make/scripts/tests.sh
@@ -399,13 +399,13 @@ function testawtswt() {
#testnoawt com.jogamp.opengl.test.junit.newt.TestWindows01NEWT $*
#testnoawt com.jogamp.opengl.test.junit.newt.TestWindowClosingProtocol02NEWT $*
#testnoawt com.jogamp.opengl.test.junit.newt.TestGLWindows01NEWT $*
-#testnoawt com.jogamp.opengl.test.junit.newt.TestGLWindows02NEWTAnimated $*
+testnoawt com.jogamp.opengl.test.junit.newt.TestGLWindows02NEWTAnimated $*
#testnoawt com.jogamp.opengl.test.junit.newt.TestGLWindowInvisiblePointer01NEWT $*
#testnoawt com.jogamp.opengl.test.junit.newt.TestDisplayLifecycle01NEWT
#testnoawt com.jogamp.opengl.test.junit.newt.TestDisplayLifecycle02NEWT
#testnoawt com.jogamp.opengl.test.junit.newt.mm.TestScreenMode00aNEWT $*
#testnoawt com.jogamp.opengl.test.junit.newt.mm.TestScreenMode00bNEWT $*
-testnoawt com.jogamp.opengl.test.junit.newt.mm.TestScreenMode00cNEWT $*
+#testnoawt com.jogamp.opengl.test.junit.newt.mm.TestScreenMode00cNEWT $*
#testnoawt com.jogamp.opengl.test.junit.newt.mm.TestScreenMode01aNEWT $*
#testnoawt com.jogamp.opengl.test.junit.newt.mm.TestScreenMode01bNEWT $*
#testnoawt com.jogamp.opengl.test.junit.newt.mm.TestScreenMode01cNEWT $*
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/TestGLWindows02NEWTAnimated.java b/src/test/com/jogamp/opengl/test/junit/newt/TestGLWindows02NEWTAnimated.java
index 64c5e9c8d..e1c6c75c9 100644
--- a/src/test/com/jogamp/opengl/test/junit/newt/TestGLWindows02NEWTAnimated.java
+++ b/src/test/com/jogamp/opengl/test/junit/newt/TestGLWindows02NEWTAnimated.java
@@ -131,6 +131,7 @@ public class TestGLWindows02NEWTAnimated extends UITestCase {
Assert.assertEquals(true, animator.isStarted());
animator.remove(window);
+ Thread.sleep(250); // give animator a chance to become paused
Assert.assertEquals(false, animator.isAnimating());
Assert.assertEquals(true, animator.isPaused()); // zero drawables
Assert.assertEquals(true, animator.isStarted());
@@ -145,6 +146,7 @@ public class TestGLWindows02NEWTAnimated extends UITestCase {
Animator animator = new Animator();
animator.setUpdateFPSFrames(1, null);
Assert.assertTrue(animator.start());
+ Thread.sleep(250); // give animator a chance to become paused
Assert.assertEquals(false, animator.isAnimating()); // zero drawables
Assert.assertEquals(true, animator.isPaused()); // zero drawables
animator.add(window);
@@ -157,6 +159,7 @@ public class TestGLWindows02NEWTAnimated extends UITestCase {
Assert.assertEquals(true, animator.isStarted());
Assert.assertEquals(false, animator.isPaused());
animator.remove(window);
+ Thread.sleep(250); // give animator a chance to become paused
Assert.assertEquals(false, animator.isAnimating());
Assert.assertEquals(true, animator.isStarted());
Assert.assertEquals(true, animator.isPaused()); // zero drawables
@@ -189,6 +192,7 @@ public class TestGLWindows02NEWTAnimated extends UITestCase {
Assert.assertTrue(animator.start());
Assert.assertEquals(true, animator.isStarted());
+ Thread.sleep(250); // give animator a chance to become paused
Assert.assertEquals(false, animator.isAnimating()); // zero drawables
Assert.assertEquals(true, animator.isPaused()); // zero drawables
@@ -217,6 +221,7 @@ public class TestGLWindows02NEWTAnimated extends UITestCase {
window2.destroy();
animator.remove(window2);
Assert.assertEquals(true, animator.isStarted());
+ Thread.sleep(250); // give animator a chance to become paused
Assert.assertEquals(false, animator.isAnimating()); // zero drawables
Assert.assertEquals(true, animator.isPaused()); // zero drawables
Assert.assertTrue(animator.stop());
@@ -253,6 +258,7 @@ public class TestGLWindows02NEWTAnimated extends UITestCase {
Assert.assertTrue(animator.start());
Assert.assertEquals(true, animator.isStarted());
+ Thread.sleep(250); // give animator a chance to become paused
Assert.assertEquals(false, animator.isAnimating()); // zero drawables
Assert.assertEquals(true, animator.isPaused()); // zero drawables
@@ -298,6 +304,7 @@ public class TestGLWindows02NEWTAnimated extends UITestCase {
destroyWindow(window2);
animator.remove(window2);
Assert.assertEquals(true, animator.isStarted());
+ Thread.sleep(250); // give animator a chance to become paused
Assert.assertEquals(false, animator.isAnimating()); // zero drawables
Assert.assertEquals(true, animator.isPaused()); // zero drawables