aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-01 06:18:38 +0200
committerSven Gothel <[email protected]>2011-09-01 06:18:38 +0200
commit640cb3999d712a04d1bb1262a55db4e404bcf26c (patch)
tree5bfe8c94b79c9dc40856c892cec5146c8d76d67d /src
parent51161b199d8c281ec19130565954353303cf44c6 (diff)
TestScreenMode01NEWT: Validate window size after FS toggle
Diffstat (limited to 'src')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/TestScreenMode01NEWT.java8
1 files changed, 8 insertions, 0 deletions
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);