diff options
author | Michael Bien <[email protected]> | 2010-05-19 05:18:55 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-05-19 05:18:55 +0200 |
commit | 5d0f56a70bcc1f971a9d330d8012b8b97778453a (patch) | |
tree | e84cc5f92570aea45430a244657f9bc5d4727460 /src/junit | |
parent | 6842d41aff963d323c6047e30d06257f524be571 (diff) | |
parent | 8e078b5902ed7615fd976499af7100f6f84cb2db (diff) |
Merge branch 'master' of github.com:sgothel/jogl
Conflicts:
doc/HowToBuild.html
Diffstat (limited to 'src/junit')
-rwxr-xr-x | src/junit/com/jogamp/test/junit/jogl/offscreen/TestOffscreen01NEWT.java | 48 |
1 files changed, 42 insertions, 6 deletions
diff --git a/src/junit/com/jogamp/test/junit/jogl/offscreen/TestOffscreen01NEWT.java b/src/junit/com/jogamp/test/junit/jogl/offscreen/TestOffscreen01NEWT.java index 4a1e65a8d..bae727019 100755 --- a/src/junit/com/jogamp/test/junit/jogl/offscreen/TestOffscreen01NEWT.java +++ b/src/junit/com/jogamp/test/junit/jogl/offscreen/TestOffscreen01NEWT.java @@ -92,7 +92,13 @@ public class TestOffscreen01NEWT { window.setSize(width, height); GLWindow glWindow = GLWindow.create(window); Assert.assertNotNull(glWindow); - glWindow.setVisible(true); + try { + glWindow.setVisible(true); + } catch (Throwable t) { + // stop test and ignore if pixmap cannot be used + t.printStackTrace(); + Assume.assumeNoException(t); + } GLEventListener demo = new RedSquare(); WindowUtilNEWT.setDemoFields(demo, window, glWindow, false); glWindow.addGLEventListener(demo); @@ -191,7 +197,13 @@ public class TestOffscreen01NEWT { windows[i].setSize(width, height); glWindows[i] = GLWindow.create(windows[i]); Assert.assertNotNull(glWindows[i]); - glWindows[i].setVisible(true); + try { + glWindows[i].setVisible(true); + } catch (Throwable t) { + // stop test and ignore if pixmap cannot be used + t.printStackTrace(); + Assume.assumeNoException(t); + } demos[i] = new RedSquare(); WindowUtilNEWT.setDemoFields(demos[i], windows[i], glWindows[i], false); glWindows[i].addGLEventListener(demos[i]); @@ -250,7 +262,13 @@ public class TestOffscreen01NEWT { windows[i].setSize(width, height); glWindows[i] = GLWindow.create(windows[i]); Assert.assertNotNull(glWindows[i]); - glWindows[i].setVisible(true); + try { + glWindows[i].setVisible(true); + } catch (Throwable t) { + // stop test and ignore if pixmap cannot be used + t.printStackTrace(); + Assume.assumeNoException(t); + } demos[i] = new RedSquare(); WindowUtilNEWT.setDemoFields(demos[i], windows[i], glWindows[i], false); glWindows[i].addGLEventListener(demos[i]); @@ -303,7 +321,13 @@ public class TestOffscreen01NEWT { window.setSize(width, height); GLWindow glWindow = GLWindow.create(window); Assert.assertNotNull(glWindow); - glWindow.setVisible(true); + try { + glWindow.setVisible(true); + } catch (Throwable t) { + // stop test and ignore if pixmap cannot be used + t.printStackTrace(); + Assume.assumeNoException(t); + } GLWindow windowOnScreen = null; WindowListener wl=null; @@ -357,7 +381,13 @@ public class TestOffscreen01NEWT { window.setSize(width, height); GLWindow glWindow = GLWindow.create(window); Assert.assertNotNull(glWindow); - glWindow.setVisible(true); + try { + glWindow.setVisible(true); + } catch (Throwable t) { + // stop test and ignore if pixmap cannot be used + t.printStackTrace(); + Assume.assumeNoException(t); + } GLEventListener demo = new RedSquare(); WindowUtilNEWT.setDemoFields(demo, window, glWindow, false); glWindow.addGLEventListener(demo); @@ -406,7 +436,13 @@ public class TestOffscreen01NEWT { window.setSize(width, height); GLWindow glWindow = GLWindow.create(window); Assert.assertNotNull(glWindow); - glWindow.setVisible(true); + try { + glWindow.setVisible(true); + } catch (Throwable t) { + // stop test and ignore if pixmap cannot be used + t.printStackTrace(); + Assume.assumeNoException(t); + } GLWindow windowOnScreen = null; WindowListener wl=null; |