From edbee9a1f34929e9bd3119bac88ab1c759c569a3 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 16 Sep 2011 13:15:34 +0200 Subject: NEWT/WindowImpl: Remove wait for position (keep waitForSize for reparent/fullscreen) Window position is not deterministic enough and slows down processing while sync on it --- src/test/com/jogamp/opengl/test/junit/newt/TestWindows01NEWT.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/test/com') diff --git a/src/test/com/jogamp/opengl/test/junit/newt/TestWindows01NEWT.java b/src/test/com/jogamp/opengl/test/junit/newt/TestWindows01NEWT.java index 979f640e6..827dd09fb 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/TestWindows01NEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/newt/TestWindows01NEWT.java @@ -80,14 +80,15 @@ public class TestWindows01NEWT extends UITestCase { Assert.assertEquals(true,window.isNativeValid()); Assert.assertEquals(width, window.getWidth()); Assert.assertEquals(height, window.getHeight()); - + + /** we don't sync on position - unreliable test Point p0 = window.getLocationOnScreen(null); Assert.assertEquals(p0.getX(), window.getX()); Assert.assertEquals(p0.getY(), window.getY()); if(userPos) { Assert.assertEquals(x, window.getX()); Assert.assertEquals(y, window.getY()); - } + } */ CapabilitiesImmutable chosenCapabilities = window.getGraphicsConfiguration().getNativeGraphicsConfiguration().getChosenCapabilities(); Assert.assertNotNull(chosenCapabilities); -- cgit v1.2.3