summaryrefslogtreecommitdiffstats
path: root/src/junit
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-07-16 12:27:26 +0200
committerSven Gothel <[email protected]>2010-07-16 12:27:26 +0200
commit15d3ad1cba7ffa37f283129fd6319c5469dad510 (patch)
tree93073507842c8223767799418d760b6c88182443 /src/junit
parent95a92192fe4da2f7baa59eece08a6a6e2d71a331 (diff)
Junit: Relax assertions NEWT/Reparent
Diffstat (limited to 'src/junit')
-rw-r--r--src/junit/com/jogamp/test/junit/newt/TestGLWindows01NEWT.java2
-rw-r--r--src/junit/com/jogamp/test/junit/newt/parenting/TestParenting01NEWT.java4
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());