Source

pygame / test / display_test.py

Author Commit Message Labels Comments Date
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()