From a65516db85582ac3391b4a3d978ac07b9e1e6951 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 28 Feb 2011 19:49:12 +0100 Subject: unit tests: Gears, TestGearsNEWT, WindowImplAccess Gears (add cursor rotation) TestGearsNEWT (add decoraction toggle 'd') WindowImplAccess NEWT Closing tests .. programmatical close on EDT, which simulates 1:1 native closing operation. --- src/test/jogamp/newt/WindowImplAccess.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/test/jogamp') diff --git a/src/test/jogamp/newt/WindowImplAccess.java b/src/test/jogamp/newt/WindowImplAccess.java index 848e58227..76d0dc050 100644 --- a/src/test/jogamp/newt/WindowImplAccess.java +++ b/src/test/jogamp/newt/WindowImplAccess.java @@ -45,7 +45,12 @@ public class WindowImplAccess { } else { throw new RuntimeException("Given Window not a GLWindow, not WindowImpl, but "+win.getClass()); } - winImpl.windowDestroyNotify(); + final WindowImpl winImplF = winImpl; + winImplF.runOnEDTIfAvail(true, new Runnable() { + public void run() { + winImplF.windowDestroyNotify(); + } + }); } } -- cgit v1.2.3