aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-05-17 13:58:40 +0200
committerSven Gothel <[email protected]>2011-05-17 13:58:40 +0200
commit61a9cd15e166cbb544d0fa59af7b6c13f0456659 (patch)
tree259efa11a46971f34d39bf6d3b02b4981711e67f /src/test/com/jogamp
parentf08f31480433674db753f226f15609f9eab5b6fc (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.java6
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);