diff options
author | Sven Gothel <[email protected]> | 2013-06-16 04:31:02 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-06-16 04:31:02 +0200 |
commit | 05d8a9490497413df11fd2faf07e34d648130966 (patch) | |
tree | bbeabbe4e4d38fa656d72a1fb85a063e394a87e2 | |
parent | 4fe6cf06f74085cc90d1f5b003fd717234d43ced (diff) |
Bug 735: Bug735Inv4AWT on Java7 is also stuttering!
5 files changed, 13 insertions, 14 deletions
diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh index 17dccdcaf..61ac63a3a 100644 --- a/make/scripts/tests.sh +++ b/make/scripts/tests.sh @@ -439,12 +439,12 @@ function testawtswt() { #testawt com.jogamp.opengl.test.junit.jogl.awt.TestGLCanvasAWTActionDeadlock02AWT $* #testnoawt com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestLandscapeES2NEWT $* -testawt com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestLandscapeES2NewtCanvasAWT $* +#testawt com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestLandscapeES2NewtCanvasAWT $* #testawt com.jogamp.opengl.test.bugs.Bug735Inv0AppletAWT $* #testawt com.jogamp.opengl.test.bugs.Bug735Inv1AppletAWT $* #testawt com.jogamp.opengl.test.bugs.Bug735Inv2AppletAWT $* #testawt com.jogamp.opengl.test.bugs.Bug735Inv3AppletAWT $* -#testawt com.jogamp.opengl.test.bugs.Bug735Inv4AppletAWT $* +testawt com.jogamp.opengl.test.bugs.Bug735Inv4AWT $* # # swt (testswt) diff --git a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java index b240f0cfb..64cfe2f32 100644 --- a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java +++ b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv0AppletAWT.java @@ -382,7 +382,7 @@ public class Bug735Inv0AppletAWT extends Applet implements Runnable { frame = new Frame(displayDevice.getDefaultConfiguration()); frame.setBackground(new Color(0xCC, 0xCC, 0xCC)); - frame.setTitle("TestBug735InvAppletAWT"); + frame.setTitle("TestBug735Inv0AppletAWT"); try { Class<?> c = Thread.currentThread().getContextClassLoader(). diff --git a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv1AppletAWT.java b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv1AppletAWT.java index e1bdbba77..201418035 100644 --- a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv1AppletAWT.java +++ b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv1AppletAWT.java @@ -384,7 +384,7 @@ public class Bug735Inv1AppletAWT extends Applet implements Runnable { frame = new Frame(displayDevice.getDefaultConfiguration()); frame.setBackground(new Color(0xCC, 0xCC, 0xCC)); - frame.setTitle("TestBug735InvAppletAWT"); + frame.setTitle("TestBug735Inv1AppletAWT"); try { Class<?> c = Thread.currentThread().getContextClassLoader(). diff --git a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv3AppletAWT.java b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv3AppletAWT.java index 132a6e464..be5083851 100644 --- a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv3AppletAWT.java +++ b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv3AppletAWT.java @@ -3,7 +3,6 @@ package com.jogamp.opengl.test.bugs; import java.applet.Applet; import java.awt.BorderLayout; import java.awt.Color; -import java.awt.Dimension; import java.awt.Frame; import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; @@ -80,9 +79,6 @@ public class Bug735Inv3AppletAWT extends Applet { } public void start() { - if(waitForKey) { - UITestCase.waitForKey("Start"); - } initDraw(); animator.start(); } @@ -148,6 +144,9 @@ public class Bug735Inv3AppletAWT extends Applet { } static public void main(String[] args) { + if(waitForKey) { + UITestCase.waitForKey("Start"); + } final GraphicsEnvironment environment = GraphicsEnvironment.getLocalGraphicsEnvironment(); final GraphicsDevice displayDevice = environment.getDefaultScreenDevice(); diff --git a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv4AWT.java b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv4AWT.java index 1c98af7d4..f07d000eb 100644 --- a/src/test/com/jogamp/opengl/test/bugs/Bug735Inv4AWT.java +++ b/src/test/com/jogamp/opengl/test/bugs/Bug735Inv4AWT.java @@ -39,7 +39,8 @@ import com.jogamp.opengl.util.AnimatorBase; * OSX Results: * <pre> * - Visible content - * - Fluent animation + * - Java6: Fluent animation + * - Java7: Stuttering, non-fluent and slow animation * </pre> */ public class Bug735Inv4AWT { @@ -49,7 +50,6 @@ public class Bug735Inv4AWT { static public int APPLET_WIDTH = 500; static public int APPLET_HEIGHT = 290; static public int TOOLKIT = NEWT; - static public boolean NEWT_ROOT = false; static public boolean IGNORE_AWT_REPAINT = false; static public boolean USE_ECT = false; static public int SWAP_INTERVAL = 0; @@ -76,9 +76,6 @@ public class Bug735Inv4AWT { } public void start() { - if(waitForKey) { - UITestCase.waitForKey("Start"); - } initDraw(); animator.start(); } @@ -136,13 +133,16 @@ public class Bug735Inv4AWT { } static public void main(String[] args) { + if(waitForKey) { + UITestCase.waitForKey("Start"); + } final GraphicsEnvironment environment = GraphicsEnvironment.getLocalGraphicsEnvironment(); final GraphicsDevice displayDevice = environment.getDefaultScreenDevice(); frame = new Frame(displayDevice.getDefaultConfiguration()); // JAU frame.setBackground(new Color(0xCC, 0xCC, 0xCC)); - frame.setTitle("TestBug735Inv3AppletAWT"); + frame.setTitle("TestBug735Inv4AWT"); // This allows to close the frame. frame.addWindowListener(new WindowAdapter() { |