aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/com/jogamp')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01dNEWT.java1
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01dNEWT.java b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01dNEWT.java
index afb26d75c..c480d1759 100644
--- a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01dNEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01dNEWT.java
@@ -328,6 +328,7 @@ public class TestScreenMode01dNEWT extends UITestCase {
System.err.println("[0] set FS pre X: "+window.isFullscreen());
}
+ Thread.sleep(waitTimeShort);
System.err.println("[0] set current: "+monitorMode);
monitor.setCurrentMode(monitorMode);
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java
index f261a24a5..f10477333 100644
--- a/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode02aNEWT.java
@@ -138,6 +138,8 @@ public class TestScreenMode02aNEWT extends UITestCase {
final MonitorMode mmOrig = monitor.getOriginalMode();
Assert.assertNotNull(mmOrig);
if(changeMode) {
+ Thread.sleep(waitTimeShort);
+
List<MonitorMode> monitorModes = monitor.getSupportedModes();
if(monitorModes.size()==1) {
// no support ..
@@ -196,6 +198,8 @@ public class TestScreenMode02aNEWT extends UITestCase {
}
if(changeMode) {
+ Thread.sleep(waitTimeShort);
+
// manual restore!
monitor.setCurrentMode(mmOrig);
Assert.assertFalse(monitor.isModeChangedByUs());