Source

pygame / test / display_test.py

Author Commit Message Labels Comments Date
Lenard Lindstrom
merging with python3 branch r 2048
Lenard Lindstrom
test suite now pygame.tests subpackage as well
akalias
Made all unimplemented tests use todo_test_xxxx naming and updated the __doc__'s. Run's only implemented tests by default.
akalias
made trunk/test a package, added in python2.5 version of unittest as test.unittest.
akalias
Added in numerous test for pygame.Surface methods.
akalias
removed command line options for individual test_modules, use run_tests.py module --flags to run individual module with options ( fail incomplete etc ). Less conflict with unittest command line parser.
akalias
Added a redirect stderr/stdout mode to test runner. Only output unittest results and not test noise
akalias
Added in many test stubs, hopefully some test faeries will fill some of them out.
illume
Added a test for loading jpg, and png files. Commented out the display tests, as they crash on windows. It's to do with threading, and unittest calling the tests in a sub thread. Whereas SDL requires you to call some of those functions in the main thread.
illume
Added current_h and current_w to the display.Info() object. Added in SDL 1.2.10. Also added a test to see that it works correctly.
illume
Added a test for fonts. Where it should make a one pixel big font for the empty string. Also added a pygame.quit() at the end of a display test to avoid a segfault.
illume
Added a test to see if negative rects crash pygame.display.update()