diff options
author | Sven Gothel <[email protected]> | 2013-09-19 02:57:41 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-09-19 02:57:41 +0200 |
commit | 94117c091a253903d164a2934ea8ab1d70e9003e (patch) | |
tree | b18e2351a8b26a09e5d11640fda2847a5afd75e4 | |
parent | 5ee2fa951894ee3fdaab7b002e475c173ab5cf17 (diff) |
AWT Print Tests: Only include 600dpi tests if requested via main arg '-600dpi'
4 files changed, 8 insertions, 4 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingGearsAWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingGearsAWT.java index c7c04950a..5c200a076 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingGearsAWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingGearsAWT.java @@ -239,13 +239,14 @@ public class TestTiledPrintingGearsAWT extends TiledPrintingAWTBase { static long duration = 500; // ms public static void main(String args[]) { - allow600dpi = true; for(int i=0; i<args.length; i++) { if(args[i].equals("-time")) { i++; try { duration = Integer.parseInt(args[i]); } catch (Exception ex) { ex.printStackTrace(); } + } else if(args[i].equals("-600dpi")) { + allow600dpi = true; } else if(args[i].equals("-wait")) { waitForKey = true; } diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingGearsNewtAWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingGearsNewtAWT.java index b0d6c5117..1a5f8b922 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingGearsNewtAWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingGearsNewtAWT.java @@ -246,13 +246,14 @@ public class TestTiledPrintingGearsNewtAWT extends TiledPrintingAWTBase { static long duration = 500; // ms public static void main(String args[]) { - allow600dpi = true; for(int i=0; i<args.length; i++) { if(args[i].equals("-time")) { i++; try { duration = Integer.parseInt(args[i]); } catch (Exception ex) { ex.printStackTrace(); } + } else if(args[i].equals("-600dpi")) { + allow600dpi = true; } else if(args[i].equals("-wait")) { waitForKey = true; } diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingGearsSwingAWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingGearsSwingAWT.java index f331f5d88..f89f3ad6a 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingGearsSwingAWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingGearsSwingAWT.java @@ -298,13 +298,14 @@ public class TestTiledPrintingGearsSwingAWT extends TiledPrintingAWTBase { static long duration = 500; // ms public static void main(String args[]) { - allow600dpi = true; for(int i=0; i<args.length; i++) { if(args[i].equals("-time")) { i++; try { duration = Integer.parseInt(args[i]); } catch (Exception ex) { ex.printStackTrace(); } + } else if(args[i].equals("-600dpi")) { + allow600dpi = true; } else if(args[i].equals("-wait")) { waitForKey = true; } diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingNIOImageSwingAWT.java b/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingNIOImageSwingAWT.java index 68c4c683f..a0c50ac4b 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingNIOImageSwingAWT.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/tile/TestTiledPrintingNIOImageSwingAWT.java @@ -279,13 +279,14 @@ public class TestTiledPrintingNIOImageSwingAWT extends UITestCase { static long duration = 500; // ms public static void main(String args[]) { - allow600dpi = true; for(int i=0; i<args.length; i++) { if(args[i].equals("-time")) { i++; try { duration = Integer.parseInt(args[i]); } catch (Exception ex) { ex.printStackTrace(); } + } else if(args[i].equals("-600dpi")) { + allow600dpi = true; } else if(args[i].equals("-wait")) { waitForKey = true; } |