diff options
author | Sven Gothel <[email protected]> | 2013-07-10 02:27:29 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-07-10 02:27:29 +0200 |
commit | 214a426cf52c10519cf82e5fa00c4c76d1224379 (patch) | |
tree | 6434601fe997501f2908760e8aec461c580603d8 /src/test/com/jogamp | |
parent | 0a33012b4a9b3cdfd5b6d2f70752dab2faa44635 (diff) |
TestGLWindows02NEWTAnimated: Give animator a chance to become paused after pulling GLAD from it.
Diffstat (limited to 'src/test/com/jogamp')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/newt/TestGLWindows02NEWTAnimated.java | 7 |
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 |