aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
Commit message (Collapse)AuthorAgeFilesLines
* Fixed to work properly in the Ant junit.run.* taskswwalker2011-01-041-10/+7
| | | | | | Fixed the texture load to come from a resource stream so it'll work when run from inside a JAR by the junit.run.* Ant tasks. Also modified the test JAR build step to include any resource files in the test source code directory.
* Added unit test for bug 417; bug already gonewwalker2010-12-313-1/+150
| | | | | | I added a unit test for bug 417 (error loading grayscale texture with TextureIO). The test works fine, so the bug must have been fixed unknowingly after submission.
* AMD/X11: Added AMD/X11 workaroundSven Gothel2010-12-232-17/+52
| | | | | On AMD/X11 the create/destroy sequence must be the same even though this is agains the chicken/egg logic here ..
* Fix WindowClosingProtocol test, using new AWTRobotUtilsSven Gothel2010-12-233-79/+39
|
* TestCloseNewtAWT: Use new AWTRobotUtil.closeWindow()Sven Gothel2010-12-231-18/+2
|
* NEWT: Add WindowListener.windowDestroyed() ; Remove WindowImpl.windowDestroyed()Sven Gothel2010-12-232-6/+123
| | | | | | | | | | | | | Add WindowListener.windowDestroyed() To expose a proper window lifecycle, ie destroy-notify and destroyed, this notification is added. This will be used at least in unit tests, where we verify destruction. Remove WindowImpl.windowDestroyed(): This native hook (planned to be called by native destroy notification) is unreliable or not supported for all platforms. NEWT relies on the pre destroy native hooks and handles the final destroy notification itself.
* JOGL/NEWT: Introduce WindowClosingProtocol (solves Bug/Request 444)Sven Gothel2010-12-198-42/+555
| | | | | | | | | | | | | | | | | Similar to JFrame's closing behavior, the following components window closing follow the new WindowClosingProtocol: - GLCanvas - GLJPanel - NEWT Window, GLWindow - NEWT NewtCanvasAWT The implementation obeys either 1) the user value set by this interface, 2) an underlying toolkit set user value (JFrame, ..) 3) or it's default, eg. {@link #DO_NOTHING_ON_CLOSE DO_NOTHING_ON_CLOSE} within an AWT environment. If none of the above determines the operation, this protocol default behavior {@link #DISPOSE_ON_CLOSE DISPOSE_ON_CLOSE} shall be used.
* Fix WGL Bitmap Offscreen DrawableSven Gothel2010-12-164-182/+204
| | | | | | | | | | | In conjunction with the gluegen investigation (gluegen: fbdedff789077b5ffa07811590f771b6f9a4f3a7), on Windows the type LONG is always 32bit, hence we have to declare: typedef __int32 LONG; Besides, WGL_DRAW_TO_PBUFFER_ARB and WGL_DRAW_TO_BITMAP_ARB were missing in the WGL/ARB attribute query, and the latter was not set in caps -> attributes. Added fail safe exception for null chosen caps, if X11/WGL algo fails to determine.
* tests: test.auto.run (junit.run) and test.manual.runSven Gothel2010-12-131-4/+4
|
* Cleanup test/junit structure. com.jogamp.test -> com.jogamp.opengl.text; ↵Sven Gothel2010-12-1391-0/+13918
Compile posted Issue* Bug* snippets