diff options
author | Sven Gothel <[email protected]> | 2011-05-17 13:58:40 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-05-17 13:58:40 +0200 |
commit | 61a9cd15e166cbb544d0fa59af7b6c13f0456659 (patch) | |
tree | 259efa11a46971f34d39bf6d3b02b4981711e67f /src/test/com/jogamp | |
parent | f08f31480433674db753f226f15609f9eab5b6fc (diff) |
NEWT/GLContext (unit test): Wait for visibility/realized ; Add clean scripts
Diffstat (limited to 'src/test/com/jogamp')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/util/NEWTGLContext.java | 6 |
1 files changed, 4 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 ac91b642d..b8df88901 100644 --- a/src/test/com/jogamp/opengl/test/junit/util/NEWTGLContext.java +++ b/src/test/com/jogamp/opengl/test/junit/util/NEWTGLContext.java @@ -56,7 +56,7 @@ public class NEWTGLContext { } } - public static WindowContext createWindow(GLProfile glp, int width, int height, boolean debugGL) { + public static WindowContext createWindow(GLProfile glp, int width, int height, boolean debugGL) throws InterruptedException { GLCapabilities caps = new GLCapabilities(glp); // // Create native windowing resources .. X11/Win/OSX @@ -71,7 +71,9 @@ public class NEWTGLContext { Assert.assertNotNull(window); window.setSize(width, height); window.setVisible(true); - + AWTRobotUtil.waitForVisible(window, true); + AWTRobotUtil.waitForRealized(window, true); + GLDrawableFactory factory = GLDrawableFactory.getFactory(glp); GLDrawable drawable = factory.createGLDrawable(window); Assert.assertNotNull(drawable); |