Skip to content

Commit

Permalink
TestGLCanvasAWTActionDeadlock01AWT -> TestGLCanvasAWTActionDeadlock02…
Browse files Browse the repository at this point in the history
…AWT; To add another intermediate unit test for analysis
  • Loading branch information
sgothel committed Nov 4, 2012
1 parent 77db6a5 commit dc3aa7b
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

// Sample program that relies on JOGL's mechanism to handle the OpenGL context
// and rendering loop when using an AWT canvas attached to an Applet.
public class TestGLCanvasAWTActionDeadlock01AWT extends UITestCase {
public class TestGLCanvasAWTActionDeadlock02AWT extends UITestCase {
static int framesPerTest = 240; // frames

static class MiniPApplet extends Applet implements MouseMotionListener, KeyListener {
Expand Down Expand Up @@ -133,7 +133,7 @@ void run() {
}

if (restartCanvas && restartTimeout == frameCount) {
restart();
// restart();
}

if (useAnimator) {
Expand Down Expand Up @@ -256,7 +256,7 @@ void restart() {
animator.stop();
animator.remove(canvas);
}
canvas.removeGLEventListener(listener);
canvas.disposeGLEventListener(listener, true);
this.remove(canvas);

capabilities = new GLCapabilities(profile);
Expand Down Expand Up @@ -580,10 +580,10 @@ public synchronized boolean stop() {

@Test
public void test00() {
TestGLCanvasAWTActionDeadlock01AWT.MiniPApplet mini;
TestGLCanvasAWTActionDeadlock02AWT.MiniPApplet mini;
try {
Class<?> c = Thread.currentThread().getContextClassLoader().loadClass(TestGLCanvasAWTActionDeadlock01AWT.MiniPApplet.class.getName());
mini = (TestGLCanvasAWTActionDeadlock01AWT.MiniPApplet) c.newInstance();
Class<?> c = Thread.currentThread().getContextClassLoader().loadClass(TestGLCanvasAWTActionDeadlock02AWT.MiniPApplet.class.getName());
mini = (TestGLCanvasAWTActionDeadlock02AWT.MiniPApplet) c.newInstance();
} catch (Exception e) {
throw new RuntimeException(e);
}
Expand All @@ -598,7 +598,7 @@ public static void main(String args[]) {
framesPerTest = MiscUtils.atoi(args[++i], framesPerTest);
}
}
org.junit.runner.JUnitCore.main(TestGLCanvasAWTActionDeadlock01AWT.class.getName());
org.junit.runner.JUnitCore.main(TestGLCanvasAWTActionDeadlock02AWT.class.getName());
}

}

0 comments on commit dc3aa7b

Please sign in to comment.