diff options
Diffstat (limited to 'src/junit/com/jogamp')
-rw-r--r-- | src/junit/com/jogamp/test/junit/newt/TestGLWindows01NEWT.java | 2 | ||||
-rw-r--r-- | src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01NEWT.java | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/junit/com/jogamp/test/junit/newt/TestGLWindows01NEWT.java b/src/junit/com/jogamp/test/junit/newt/TestGLWindows01NEWT.java index 3a36a1132..52c125998 100644 --- a/src/junit/com/jogamp/test/junit/newt/TestGLWindows01NEWT.java +++ b/src/junit/com/jogamp/test/junit/newt/TestGLWindows01NEWT.java @@ -108,7 +108,7 @@ public class TestGLWindows01NEWT { Assert.assertEquals(true,glWindow.isVisible()); Assert.assertEquals(true,glWindow.isNativeWindowValid()); while(glWindow.getTotalFrames()<1) { Thread.sleep(100); } - Assert.assertEquals(1,glWindow.getTotalFrames()); // native expose .. + Assert.assertTrue(0<glWindow.getTotalFrames()); // native expose .. // Assert.assertEquals(width,glWindow.getWidth()); // Assert.assertEquals(height,glWindow.getHeight()); // System.out.println("Created: "+glWindow); diff --git a/src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01NEWT.java b/src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01NEWT.java index 421f74aa4..66d5fb60c 100644 --- a/src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01NEWT.java +++ b/src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01NEWT.java @@ -186,12 +186,14 @@ public class TestParenting01NEWT { switch(state) { case 0: glWindow2.reparentWindow(glWindow1, null); + Thread.sleep(100); // give some time for events to be propagated Assert.assertEquals(true, glWindow2.isVisible()); Assert.assertEquals(true, glWindow2.isNativeWindowValid()); Assert.assertEquals(glWindow1,glWindow2.getParentNativeWindow()); break; case 1: glWindow2.reparentWindow(null, null); + Thread.sleep(100); // give some time for events to be propagated Assert.assertEquals(true, glWindow2.isVisible()); Assert.assertEquals(true, glWindow2.isNativeWindowValid()); Assert.assertNull(glWindow2.getParentNativeWindow()); @@ -245,12 +247,14 @@ public class TestParenting01NEWT { switch(state) { case 0: glWindow2.reparentWindow(null, null); + Thread.sleep(100); // give some time for events to be propagated Assert.assertEquals(true, glWindow2.isVisible()); Assert.assertEquals(true, glWindow2.isNativeWindowValid()); Assert.assertNull(glWindow2.getParentNativeWindow()); break; case 1: glWindow2.reparentWindow(glWindow1, null); + Thread.sleep(100); // give some time for events to be propagated Assert.assertEquals(true, glWindow2.isVisible()); Assert.assertEquals(true, glWindow2.isNativeWindowValid()); Assert.assertEquals(glWindow1,glWindow2.getParentNativeWindow()); |