aboutsummaryrefslogtreecommitdiffstats
path: root/src/junit
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-06-02 16:49:28 +0200
committerSven Gothel <[email protected]>2010-06-02 16:49:28 +0200
commit6bbf70d2f4a06b8aa0b100d83ed9aca6dd80040e (patch)
tree16d4d879a35b7645f46bbd947bed5b52c6022940 /src/junit
parent42dbcf2a74eb91d4a165f815429c121c4beb0501 (diff)
JOGL: Sanity check in GLDrawableHelper (Context creation and initAction) ; Add Platform info in test
Diffstat (limited to 'src/junit')
-rw-r--r--src/junit/com/jogamp/test/junit/jogl/acore/DumpVersion.java4
-rwxr-xr-xsrc/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsAWT.java2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/junit/com/jogamp/test/junit/jogl/acore/DumpVersion.java b/src/junit/com/jogamp/test/junit/jogl/acore/DumpVersion.java
index 802936d2c..5bba65002 100644
--- a/src/junit/com/jogamp/test/junit/jogl/acore/DumpVersion.java
+++ b/src/junit/com/jogamp/test/junit/jogl/acore/DumpVersion.java
@@ -39,6 +39,7 @@ import org.junit.AfterClass;
import org.junit.Test;
import javax.media.opengl.*;
+import com.jogamp.common.os.Platform;
import java.io.IOException;
@@ -47,6 +48,9 @@ public class DumpVersion implements GLEventListener {
public void init(GLAutoDrawable drawable) {
GL gl = drawable.getGL();
+ System.err.println(Thread.currentThread()+" Platform: " + Platform.getOS() + " (os), " + Platform.getArch() + " (arch)");
+ System.err.println(Thread.currentThread()+" Platform: littleEndian " + Platform.isLittleEndian() + ", 32Bit "+Platform.is32Bit() + ", a-ptr bit-size "+Platform.getPointerSizeInBits());
+ System.err.println(Thread.currentThread()+" Platform: JavaSE " + Platform.isJavaSE());
System.err.println(Thread.currentThread()+" GL Profile " + gl.getGLProfile());
System.err.println(Thread.currentThread()+" CTX VERSION " + gl.getContext().getGLVersion());
System.err.println(Thread.currentThread()+" GL " + gl);
diff --git a/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsAWT.java b/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsAWT.java
index 21487c519..2df3f0de9 100755
--- a/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsAWT.java
+++ b/src/junit/com/jogamp/test/junit/jogl/demos/gl2/gears/TestGearsAWT.java
@@ -95,7 +95,9 @@ public class TestGearsAWT {
Assert.assertNotNull(animator);
animator.stop();
+ Assert.assertEquals(false, animator.isAnimating());
frame.setVisible(false);
+ Assert.assertEquals(false, frame.isVisible());
frame.remove(glCanvas);
frame.dispose();
frame=null;