summaryrefslogtreecommitdiffstats
path: root/src
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 /src
parent0a33012b4a9b3cdfd5b6d2f70752dab2faa44635 (diff)
TestGLWindows02NEWTAnimated: Give animator a chance to become paused after pulling GLAD from it.
Diffstat (limited to 'src')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/TestGLWindows02NEWTAnimated.java7
1 files changed, 7 insertions, 0 deletions
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