summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-01-09 19:06:24 +0100
committerSven Gothel <[email protected]>2012-01-09 19:06:24 +0100
commit1a79d4f87d750b3146b80bd861230022e66108d6 (patch)
treebbe42af7e5e35f8b94df44f25b590a37dbd5a4af /src
parentcf9794c6f443154893354a5390246b295439635e (diff)
Add 'AWT' in JOGL's SWT GLCanvas test case, since impl. still needs AWT threading (-> FIXME)
Diffstat (limited to 'src')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java4
-rw-r--r--src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTJOGLGLCanvas01GLnAWT.java (renamed from src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTJOGLGLCanvas01GLn.java)8
2 files changed, 10 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java b/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java
index c3936c615..ef1c3fbeb 100644
--- a/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java
+++ b/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java
@@ -71,6 +71,10 @@ import com.jogamp.opengl.JoglVersion;
/**
* Native SWT Canvas implementing GLAutoDrawable
+ * <p>
+ * FIXME: Still needs AWT for threading impl.,
+ * ie. will issue a 'wrong thread' error if runs in headless mode!
+ * </p>
*/
public class GLCanvas extends Canvas implements GLAutoDrawable {
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTJOGLGLCanvas01GLn.java b/src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTJOGLGLCanvas01GLnAWT.java
index d8bf3e79f..6e5e7d802 100644
--- a/src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTJOGLGLCanvas01GLn.java
+++ b/src/test/com/jogamp/opengl/test/junit/jogl/swt/TestSWTJOGLGLCanvas01GLnAWT.java
@@ -56,9 +56,13 @@ import com.jogamp.opengl.test.junit.util.UITestCase;
* <p>
* Uses JOGL's new SWT GLCanvas.
* </p>
+ * <p>
+ * Holds AWT in it's test name, since our impl. still needs the AWT threading,
+ * see {@link GLCanvas}.
+ * </p>
* @author Wade Walker, et.al.
*/
-public class TestSWTJOGLGLCanvas01GLn extends UITestCase {
+public class TestSWTJOGLGLCanvas01GLnAWT extends UITestCase {
static int duration = 250;
@@ -173,6 +177,6 @@ public class TestSWTJOGLGLCanvas01GLn extends UITestCase {
}
}
System.out.println("durationPerTest: "+duration);
- org.junit.runner.JUnitCore.main(TestSWTJOGLGLCanvas01GLn.class.getName());
+ org.junit.runner.JUnitCore.main(TestSWTJOGLGLCanvas01GLnAWT.class.getName());
}
}