summaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp
Commit message (Collapse)AuthorAgeFilesLines
* Refine 9c7ab101cf5261db3ef6160c0aa1906ffcce188b: Don't print extensions .. ↵Sven Gothel2013-07-045-5/+5
| | | | too much
* TestScreenMode*: Be more verbose setting screen mode.Sven Gothel2013-07-045-52/+107
|
* Revisit Bug 770 and Bug 771: Only use FLAG_IS_FULLSCREEN_SPAN if required; ↵Sven Gothel2013-07-042-0/+5
| | | | | | | | | | | | | At MonitoMode change, reset fullscreen if FLAG_IS_FULLSCREEN_SPAN is supported. - Bug 770: Only use FLAG_IS_FULLSCREEN_SPAN if required - If X11 WindowDriver _and_ virtual-screen-size > fullscreenViewport, - else we still use _NET_WM_STATE_FULLSCREEN on X11! - Bug 771: At MonitoMode change, reset fullscreen if FLAG_IS_FULLSCREEN_SPAN is supported - Since we may still use _NET_WM_STATE_FULLSCREEN on X11: - Pause fullscreen at monitorModeChangeNotify(..) - Resume fullscreen at monitorModeChanged(..)
* TestScreenMode* Cleanup (reset)Sven Gothel2013-07-045-78/+82
| | | | | | | | | | - TestScreenMode01aNEWT and TestScreenMode01dNEWT test auto-reset (destroying last Screen ref. reinstates orig MonitorMode) - Other tests do manual reset. - Add ant test target 'junit.run.newt.monitormode' to test only monitor-mode / fullscreen cases
* Use JoglVersion.getGLStrings(..) in 'famous' tests, removes redundancy .. ↵Sven Gothel2013-07-045-40/+10
| | | | Gears* RedSquare*
* Remove deprecated methods.Sven Gothel2013-07-043-5/+11
| | | | | | | | | - Quaternion.isEmpty() - Texture.dispose(GL) - GLContext.getGLVersionMajor() / ..Minor() - GLContextImpl.bindPbufferToTexture() / releasePbufferFromTexture() - MouseEvent.getWheelRotation() -
* Revise commit 4c34f5980bddcdc84b10cb3bcbb96b365b9d471e (Bug 767): TAB, BS ↵Sven Gothel2013-07-031-14/+16
| | | | | | | | | and CR/ENTER are printable for NEWT KeyEvent and font handling. Fix regression. - Original behavior was treating CR/ENTER them as printable, lets keep it this way. - KeyEvent: Query these 3 whitespaces upfront, no need to incl. them in 'nonPrintableKeys'. - Fix regression: Native VK_ENTER was not change in commit 4c34f5980bddcdc84b10cb3bcbb96b365b9d471e.
* Bug 724: Testing PNG Transparency / Fixing GLSL Shader of test case: Mix ↵Sven Gothel2013-07-037-14/+259
| | | | texture alpha properly (pre-multiply), due to lack of ALPHA_BLENDING.
* Bug 724: Add manual unit test, incr. PNGImage verbosity.Sven Gothel2013-07-022-7/+10
|
* Bug 734: Bug could not be reproduced w/ TestScreenMode02bNEWT, however on ↵Sven Gothel2013-07-022-2/+240
| | | | | | | some X11 tests systems, artifacts could be experienced. X11 Test systems w/ AMD fglrx and Intel Mesa, the rotated height is cut off .. probably due to bug of driver code and rotation.
* Fix Bug 770 and 771Sven Gothel2013-07-021-75/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 770: X11Window.c: - Request focus _before_ enabling EWMH flags (fullscreen or above) after resize and temporary invisibility. This actually allows us to keep the focus after resize and repositioning! - Set _NET_WM_BYPASS_COMPOSITOR implicit analog to _NET_WM_STATE_FLAG_ABOVE - Clean up _NET_WM_* flag names, avoiding name space collisions, i.e. adding FLAG! - Remove dead _NET_WM_STATE setting via direct window property (not working anyways) - Remove dead code: FS_GRAB_KEYBOARD X11/WindowDriver.java: - Enable _NET_WM_STATE_FLAG_ABOVE temporarily if FLAG_IS_FULLSCREEN && !FLAG_IS_ALWAYSONTOP - Override focusChanged(..) to react on focus lost/gained in case of temporarily enabled _NET_WM_STATE_FLAG_ABOVE. If focus is lost, disable _NET_WM_STATE_FLAG_ABOVE, otherwise re-enable it. WindowImpl.java: - FullscreenAction.run: Always use 'FLAG_IS_FULLSCREEN_SPAN' +++ Bug 771: WindowImpl.java: - Keep fullscreenMonitors and fullscreenUseMainMonitor values intact, allowing them to be tracked. Remove duplicates in FullscreenAction class. - MonitorModeListenerImpl.monitorModeChanged: Add fullscreen path: If the changed monitor is part of fullscreenMonitors, recalculate the viewport union and reset position and fullscreen-size. - MonitorModeListenerImpl: Try to regain focus after successful mode change.
* Add Comparable<?>: Point*, Dimension*, Rectangle*, SurfaceSize* and ↵Sven Gothel2013-06-301-2/+32
| | | | | | | | | | | MonitorMode* ; Sort List<MonitorMode> in descending order to be well determined. Add Comparable<?>: Point*, Dimension*, Rectangle*, SurfaceSize* and MonitorMode*: - Compare square values - See API doc for order of special semantics (flags, rotation, ..) Sort List<MonitorMode> in descending order to be well determined: - Removes order by native mode id, give user a reliable natural order.
* Tests: Put monitor/screen mode tests to own subpackageSven Gothel2013-06-298-8/+8
|
* Tests: Fix enumeration of monitor/screen mode tests, add tests description ↵Sven Gothel2013-06-297-13/+34
| | | | to class header.
* Tests: Fix enumeration of monitor/screen mode tests, add tests description ↵Sven Gothel2013-06-294-0/+0
| | | | to class header.
* Disable TestNewtEventModifiersNewtCanvasSWTAWT: Causes sporadic freezes on ↵v2.0.2-rc12v2.0-rc12Sven Gothel2013-06-251-1/+7
| | | | Window/Linux ..
* Test NEWT Key Events, TestInitConcurrent0*NEWT: TO 5 -> 3 minutesSven Gothel2013-06-259-28/+28
|
* Test NEWT Key Events: Add TO of 5 minutesSven Gothel2013-06-256-22/+22
|
* TestInitConcurrent0*NEWT: Add TO of 5 minutesSven Gothel2013-06-252-6/+6
|
* TestFocus02SwingAWTRobot: Fix Java7 'changed behavior': Relax focus ↵Sven Gothel2013-06-251-1/+1
| | | | traversal validation checks.
* TestFocus02SwingAWTRobot: Fix Java7 'changed behavior': Relax focus ↵Sven Gothel2013-06-251-1/+7
| | | | traversal validation checks.
* AWTRobotUtil.*KeyPress/Release: Remove waitForIdle(robot), but call per use ↵Sven Gothel2013-06-256-14/+18
| | | | case instead.
* TestFocus0[12]SwingAWTRobot: Fix Java7 'changed behavior': Relax focus ↵Sven Gothel2013-06-242-13/+16
| | | | | | | traversal validation checks. - Remove Frame lost detection - Allow to have NEWT and it's NewtCanvasAWT claiming to have the focus
* Tests NEWTKeyAdapter: Fix log stringSven Gothel2013-06-241-2/+2
|
* Apply workaround of Java7 AWT Robot.waitForIdle()/EDT bug for all ↵Sven Gothel2013-06-245-22/+26
| | | | | | Robot.waitForIdle() calls. See commit 8f3b2a4cc14be60681a7bfae0507655cc5702836
* Workaroung a Java7 AWT EDT/Robot bug: Validate whether AWT-EDT is alive ↵Sven Gothel2013-06-242-3/+59
| | | | | | | | | | | | | | | | | | | | | before certain robot ops. We have experienced that w/o utilizing AWT components, i.e. NEWT tests, the AWT-EDT 'sometimes' dies. Performing AWT robot's waitForIdle() in this situation causes a deadlock, since the call will never complete it's EventQueue.invokeAndWait() call. While analyzing this issue, we created a test tool whether the the AWT EDT is still alive. This test issues EventQueue.invokeLater( .. { flag=true; } ); and polls up until 2s for the result. Turns out that the sporadic AWT-EDT issues are solved by this test itself, i.e. it probably cause it to be reinstated. (?!) We have to observe this behavior. Another proof that quantum mechanic rules also apply in the macro cosmos :)
* UITestCase: Increase SINGLE_INSTANCE_LOCK_TO from 3 to 6 minutes!Sven Gothel2013-06-241-1/+1
|
* TestSWTAccessor03AWTGLn: Fix SWT deadlock on Java7/Windows: Must perform AWT ↵Sven Gothel2013-06-241-2/+6
| | | | frame close on current thread ..
* TestGearsES2GLJPanel*: Use Gears (GL 1 based) if using bitmap - On Windows ↵Sven Gothel2013-06-242-6/+4
| | | | | | GDI would be returned and neither ES1 nor ES2 features are available. Fixes commit 3e528a69db38711c789a08d1d7335e5a7739f780
* TestGearsES2GLJPanel*: Use GearsES1 is using bitmap - On Windows GDI would ↵Sven Gothel2013-06-242-5/+20
| | | | | | | be returned! We still have to solve the GL renderer selection / probing problem, i.e. in such cases we don't know before context realization which GL renderer we actually receive.
* GearsES2/RedSquareES2: Detect !GLSL and don't attempt to render in such case.Sven Gothel2013-06-242-9/+34
|
* Tests: Remove subsequent exceptions .. (not original issue, but annoying ↵Sven Gothel2013-06-243-5/+13
| | | | while analyzing)
* Fix Bug 761 (part 2/2): NEWT registers one customShutdownHook @ ↵Sven Gothel2013-06-231-0/+46
| | | | | | | | | | | | | | | | | | | | | | | NativeWindowFactory.shutdownHook head, allowing proper resource cleanup. 1 WindowImpl.shutdownAll(): - For all instances: - mark invalid (causes any user thread to disregard the window) 2 ScreenImpl.shutdownAll(): - Removed own shutdown-hook! - For all instances: - Reset ScreenMonitorState 3 DisplayImpl.shutdownAll(): - For all instances: - Remove EDT - closeNativeImpl Manually tested on X11 w/ NV and ATI Catalyst (fglrx) - DFLAGS="-Djogl.debug.GLDrawable -Dnativewindow.debug.X11Util -Dnativewindow.debug.NativeWindow -Dnewt.debug.Display -Dnewt.debug.Screen -Dnewt.debug.Window" - java $DFLAGS com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestGearsES2NEWT -time 2000 -sysExit testExit - valid arguments for sysExit: testExit, testError, displayExit, displayError
* Fix Bug 735: GLAutoDrawable must issue glViewport(..) even w/o ↵Sven Gothel2013-06-172-5/+1
| | | | | | | | | | | GLEventListener ; Optimize GLDrawableHelper's glViewportCall(..) GLAutoDrawable must issue glViewport(..) even w/o GLEventListener - Same behavior w/ or w/o GLEventListener requires to issue glViewport, always. Optimize GLDrawableHelper's glViewportCall(..) - 'private void init(..)' receives 'setViewport' argument to be passed to 'private void reshape(..)' allowing to only the the viewport once @ 'public void init(..)' and display.
* Fix TestNewtKeyEventAutoRepeatAWT (Bug 688): Reduce head/tail event check to ↵Sven Gothel2013-06-171-16/+4
| | | | 2 events (Windows can't produce AR)
* Fix Bug 688: Removal of NEWT KeyEvent.EVENT_KEY_TYPED and ↵Sven Gothel2013-06-172-5/+3
| | | | KeyListener.keyTyped(KeyEvent) - Part2: API Documentation and Comments
* Fix Bug 688: Removal of NEWT KeyEvent.EVENT_KEY_TYPED and ↵Sven Gothel2013-06-1729-138/+114
| | | | KeyListener.keyTyped(KeyEvent)
* Bug 735: Fix comment in test, since mystery is solved :)Sven Gothel2013-06-172-2/+4
|
* Solve Bug 735 Mystery: glViewport(..) was missing - duh :)Sven Gothel2013-06-172-0/+4
|
* Bug735: Bug735Inv0AppletAWT/Bug735Inv1AppletAWT tests: Use shader ↵Sven Gothel2013-06-172-6/+7
| | | | customization, no Clear required, .. (still don't work w/ CALAyer)
* Fix Bug 753: Stuttering caused by lack of GL resource synchronization ↵Sven Gothel2013-06-179-12/+3802
| | | | | | | | | | | | | | | | | | | | | between Java GL- and CALayer thread ; Simplify / Fix waitUntilRenderSignal(). Stuttering caused by lack of GL resource synchronization between Java GL- and CALayer thread + // Required(?) to finish previous GL rendering to give CALayer proper result, + // i.e. synchronize both threads each w/ their GLContext sharing same resources. + // + // FIXME: IMHO this synchronization should be implicitly performed via 'CGL.flushBuffer(contextHandle)' above, + // in case this will be determined a driver bug - use a QUIRK entry in GLRendererQuirks! + gl.glFinish(); Simplify / Fix waitUntilRenderSignal() - remove loop and 'ready' condition -> nonsense - if too later, i.e. lastWaitTime+TO < now, use now+TO as max. vsync waiting time Bug735 Tests: - Make vsync, wait and ECT (exclusive context thread) configurable via main args. - Inv2*, Inv3* and Inv4*: Fluent Animation - Works w/ ECT
* Bug 735: Bug735Inv4AWT on Java7 is also stuttering!Sven Gothel2013-06-164-12/+11
|
* Bug 735: Adding Andres test cases for analysis. OSX exposes diff. odd ↵Sven Gothel2013-06-1610-0/+2467
| | | | behaviors - See BugXYZ test cases.
* Fix Bug 745: NPE - QTT definition shall be allowd to _follow_ SOF (frame) - ↵Sven Gothel2013-06-142-2/+19
| | | | Reference QTT via QTT[] passed to frame, validate after parsing.
* TestRedSquareES2NEWT: CleanupSven Gothel2013-06-131-8/+11
|
* TestX11DefaultDisplay: Validate the chosen default device, test only one ↵Sven Gothel2013-06-131-75/+61
| | | | GLDefault/RedSquareES1; Tested w/ Xvnc4 + build-in Mesa 4.0.4
* added unit test for nativewindow.x11.display.default system propertyMaik Riechert2013-06-131-0/+158
|
* Bug 733: Refine Test case: warp-random at display, and warp-center at ↵Sven Gothel2013-06-121-9/+64
| | | | mouse-leave.
* Adds a unit test for GLWindow.warpPointer(int,int)Julien Gouesse2013-06-121-0/+116
|
* Fix Bug 748 - PMVMatrix gluProject and gluUnProject broken w/ backingArray ↵Sven Gothel2013-06-091-0/+125
| | | | | | | | | (default) ; Also: Use FloatUtil in-place multMatrixf. PMVMatrix gluProject(..) and gluUnProject(..) don't pass their position (offset) to the multMatrixf operation - even though they are sliced. The API doc actually emphasizes this.