From 44117f78f5d4fb3329409a92d758562d013298af Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 5 Nov 2013 18:47:56 +0100 Subject: Bug 888 / Bug 891- Enhance GLCapabilities-Query: Refine unit tests --- .../junit/jogl/perf/TestPerf001GLJPanelInit01AWT.java | 13 +++++++++---- .../junit/jogl/perf/TestPerf001GLJPanelInit02AWT.java | 13 +++++++++---- .../test/junit/jogl/perf/TestPerf001RawInit00NEWT.java | 15 ++++++++------- 3 files changed, 26 insertions(+), 15 deletions(-) (limited to 'src/test') diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/perf/TestPerf001GLJPanelInit01AWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/perf/TestPerf001GLJPanelInit01AWT.java index d47058857..24bd1b748 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/perf/TestPerf001GLJPanelInit01AWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/perf/TestPerf001GLJPanelInit01AWT.java @@ -185,24 +185,23 @@ public class TestPerf001GLJPanelInit01AWT extends UITestCase { @Test public void test01NopGLJPanel() throws InterruptedException, InvocationTargetException { - final int width = 800, height = 600, rows = 5, cols = 5; test(false /*useGears*/, width, height, rows, cols, true /* useGLJPanel */, false /*useAnim*/); } @Test public void test02NopGLCanvas() throws InterruptedException, InvocationTargetException { - final int width = 800, height = 600, rows = 5, cols = 5; test(false /*useGears*/, width, height, rows, cols, false /* useGLJPanel */, false /*useAnim*/); } - static long duration = 2000; // ms + static long duration = 0; // ms static boolean wait = false; + static int width = 800, height = 600, rows = 5, cols = 5; volatile int initCount = 0; public static void main(String[] args) { - int width = 800, height = 600, rows = 5, cols = 5; boolean useGLJPanel = true, useGears = false, manual=false; + boolean waitMain = false; for(int i=0; i