diff options
author | Sven Gothel <[email protected]> | 2011-10-12 03:00:49 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-12 03:00:49 +0200 |
commit | bf7d0eccf06285885db128e779b7e962b9e59333 (patch) | |
tree | 7ef01e1764c734cdbff93e5e91b8eaa21f12ca3d /src | |
parent | 0baf1e9fb5b1fa9a1e5c15398486502112a82b7d (diff) |
Test Util NEWGLContext: Add assertions
Diffstat (limited to 'src')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/util/NEWTGLContext.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/util/NEWTGLContext.java b/src/test/com/jogamp/opengl/test/junit/util/NEWTGLContext.java index 814a9fcfb..6a6cf390f 100644 --- a/src/test/com/jogamp/opengl/test/junit/util/NEWTGLContext.java +++ b/src/test/com/jogamp/opengl/test/junit/util/NEWTGLContext.java @@ -105,14 +105,15 @@ public class NEWTGLContext { Assert.assertNotNull(window); window.setSize(width, height); window.setVisible(true); - AWTRobotUtil.waitForVisible(window, true); - AWTRobotUtil.waitForRealized(window, true); + Assert.assertTrue(AWTRobotUtil.waitForVisible(window, true)); + Assert.assertTrue(AWTRobotUtil.waitForRealized(window, true)); GLDrawableFactory factory = GLDrawableFactory.getFactory(glp); GLDrawable drawable = factory.createGLDrawable(window); Assert.assertNotNull(drawable); drawable.setRealized(true); + Assert.assertTrue(drawable.isRealized()); GLContext context = drawable.createContext(null); Assert.assertNotNull(context); |