From 640cb3999d712a04d1bb1262a55db4e404bcf26c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 1 Sep 2011 06:18:38 +0200 Subject: TestScreenMode01NEWT: Validate window size after FS toggle --- .../com/jogamp/opengl/test/junit/newt/TestScreenMode01NEWT.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/test/com') diff --git a/src/test/com/jogamp/opengl/test/junit/newt/TestScreenMode01NEWT.java b/src/test/com/jogamp/opengl/test/junit/newt/TestScreenMode01NEWT.java index c84db6081..e7457b905 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/TestScreenMode01NEWT.java +++ b/src/test/com/jogamp/opengl/test/junit/newt/TestScreenMode01NEWT.java @@ -99,13 +99,21 @@ public class TestScreenMode01NEWT extends UITestCase { Animator animator = new Animator(window); animator.start(); + Assert.assertEquals(false, window.isFullscreen()); + Assert.assertEquals(width, window.getWidth()); + Assert.assertEquals(height, window.getHeight()); + window.setFullscreen(true); Assert.assertEquals(true, window.isFullscreen()); + Assert.assertEquals(window.getScreen().getWidth(), window.getWidth()); + Assert.assertEquals(window.getScreen().getHeight(), window.getHeight()); Thread.sleep(waitTimeShort); window.setFullscreen(false); Assert.assertEquals(false, window.isFullscreen()); + Assert.assertEquals(width, window.getWidth()); + Assert.assertEquals(height, window.getHeight()); Thread.sleep(waitTimeShort); -- cgit v1.2.3