Commit graph

1252 commits

Author SHA1 Message Date
Jørgen P. Tjernø
192af6485f Test plan for relative mode. 2013-04-24 12:20:44 -07:00
Andreas Schiffler
c443135e94 Fix double free in video test suite 2013-04-23 20:45:49 -07:00
Andreas Schiffler
2b47360970 Disable one test that crashes audio suite when run together with other tests 2013-04-23 08:19:21 -07:00
Andreas Schiffler
e4f6322689 Add tests to audio suite 2013-04-23 08:07:52 -07:00
Jørgen P. Tjernø
c7fb60a46b Make Cocoa_ShowMessageBox work in background threads. 2013-04-22 18:14:32 -07:00
David Ludwig
6a01cdf7f3 WinRT: merged with latest, official, SDL 2.x sources 2013-04-21 12:38:44 -04:00
Andreas Schiffler
56c27c7be9 Fix bug 1789: SDL_IntersectRect intersection with empty rect does not set result to empty; add test coverage to Rect suite 2013-04-17 08:09:11 -07:00
Ryan C. Gordon
19909e7dcb Maybe actually fix compiler warning this time. 2013-04-16 00:09:48 -04:00
Ryan C. Gordon
86b8376c2b Fixed a compiler warning on Visual Studio. 2013-04-15 22:49:23 -04:00
David Ludwig
41ce3814e2 WinRT: merged with latest, official, SDL 2.x sources (at rev. bea100d73d13) 2013-04-14 11:42:55 -04:00
Andreas Schiffler
619405f9a3 Add test coverage for SDL_SetWindowData and SDL_GetWindowData to Video suite 2013-04-13 09:45:39 -07:00
Jørgen P. Tjernø
50a23e3026 Improve testgamecontroller output & robustness. 2013-04-03 16:48:23 -07:00
Ryan C. Gordon
569de57dd7 Another attempt at fixing compiler warnings for SDLTest_SurfaceImage_t. 2013-04-03 11:49:25 -04:00
Ryan C. Gordon
9baec7cd8b Possibly fix compiler warnings, simplify SDLTest_SurfaceImage_t definition. 2013-04-03 11:38:05 -04:00
Ryan C. Gordon
f3d6be82af Patched test apps to compile with C89 compilers (thanks, Axel!).
Fixes Bugzilla #1772.
2013-03-29 21:21:48 -04:00
Sam Lantinga
282adb772b Fixed bug 1759 - Updates to testjoystick.c
ny00

A minor patch is attached, with the following few changes to testjoystick.c:
- Unused constant definitions have been removed.
- Output for all analog axes is drawn, even when there is an odd number of axes. (I have a controller with 5 analog axes.)
- Buttons are now drawn on two rows, so there's room for more. In fact, it has been used for testing a proposed joystick patch for Android, where large button ID numbers have been involved (20 and up). For more details see http://bugzilla.libsdl.org/show_bug.cgi?id=1700.
- A few adaptations have been done for the Android platform, assuming joystick support is ever applied to it. One of them is that the very first joystick (in the enumeration of all joysticks) is opened for testing, if there is any.
- It is now possible to quit from the calibration by pressing on a mouse button, tapping on a touchscreen or pressing/tapping on the "Back" button of an Android device. Technically, a press on a key identified by key code SDLK_AC_BACK results in that.
2013-03-19 22:25:02 -07:00
Sam Lantinga
63b082da83 Removed unused window size constants 2013-03-17 09:47:25 -07:00
Sam Lantinga
3afbe992d5 Removed Nintendo DS support since nobody has volunteered to maintain it for over a year. 2013-03-17 09:44:58 -07:00
Andreas Schiffler
42a673ce23 Fix bug 122 - SDL_RWops bug fixes: set RWops.type field, add input validation, add test coverage 2013-03-13 08:35:03 -07:00
Andreas Schiffler
6a2bff0cd1 Fix bug 1560 - SDL_RWFromConstMem write operation returns -1 but should return 0. 2013-03-12 09:10:37 -07:00
Andreas Schiffler
edbf26b139 Add parameter checking to SetWindowSize functions; add tests to video suite 2013-03-08 23:33:07 -08:00
Andreas Schiffler
5916b2bc1e Fix Bug 1533 - SDL_Keycode value range allows segfaults with negative values; add test coverage to keyboard suite 2013-03-08 23:04:53 -08:00
Sam Lantinga
c6388c87c1 Changed the name of SDL_mutexP() SDL_mutexV() 2013-03-07 20:12:40 -08:00
Andreas Schiffler
f7b0b73b64 Fix behavior of SDL_GetWindowPosition for invalid input; add test cases to video suite 2013-03-03 17:22:51 -08:00
Sam Lantinga
bb0752e573 Updated touch API
* Normalized touch coordinates as floats in the 0...1 range
* Removed unused touchpad concepts from the API
* Added API functions to get active touch devices and current finger state
2013-03-03 01:01:33 -08:00
Andreas Schiffler
e23532eac2 Add additional input validation to SDL_GetWindowDisplayMode; add tests to video suite 2013-02-28 09:11:04 -08:00
Jørgen P. Tjernø
cf58b77360 sdl2
- change the windows scancode logic to use the scan code value in lparam rather than VK's to get a stable scancode value across different KB layouts
2013-02-25 16:52:42 -08:00
Andreas Schiffler
c5865bdd87 Add tests to video suite 2013-02-25 08:05:26 -08:00
Ryan C. Gordon
a5862a96a3 Changed the game controller enum types to match SDL naming conventions. 2013-02-25 00:56:21 -05:00
Ryan C. Gordon
db73a392c2 Minor cleanup. 2013-02-25 00:47:47 -05:00
Ryan C. Gordon
e4ef7cba60 Made testgamecontroller minimally more useful. 2013-02-24 22:57:25 -05:00
David Ludwig
776ebe3bda WinRT: merged with latest, official, SDL 2.x code 2013-02-23 20:01:46 -05:00
Andreas Schiffler
6b7a2ee71b Fix bug 1723: flipped log text in audio suite - thanks P. Wiesemann 2013-02-18 07:59:05 -08:00
Andreas Schiffler
e19bbcffd3 Add tests to Video suite 2013-02-16 23:09:10 -08:00
Andreas Schiffler
edbd20ec34 Add tests to SDLtest suite 2013-02-13 23:10:29 -08:00
Andreas Schiffler
ea312e87fa Fix fuzzer random boundary functions; add tests for fuzzer 2013-02-12 22:23:42 -08:00
Jørgen P. Tjernø
ee501f4736 Fix another non-C90 variable declaration
This fixes a build issue with C variable declarations in the tests, for
       VisualC.
2013-02-12 14:53:47 -08:00
Jørgen P. Tjernø
f85aeb98c7 Don't clobber refcounting in SDL_Init.
- Fixes bug 1712 by not overwriting SDL_SubsystemRefCount in SDL_Init.
       - Removes the SDL_initialized variable, and makes SDL_SubsystemRefCount
         the canonical source of truth for whether or not a subsystem has been
         initialized.
       - Refactors SDL_InitSubSystem and SDL_QuitSubSystem to use helper
         functions to manage refcount.
       - Adds automated tests for SDL_Init/Quit*.
       - Adds SDL_bits.h which contains SDL_MostSignificantBitIndex.
2013-02-12 11:47:31 -08:00
Sam Lantinga
d36265107b Backed out use of @autorelease keyword for now, since it's not supported by older Xcode versions. 2013-02-11 17:39:52 -08:00
Andreas Schiffler
da76be8927 Add SDL_test test suite; add fuzzer test cases; fix fuzzer bug; fix compiler warnings 2013-02-08 07:14:50 -08:00
stopiccot
929560081c Replaced manual NSAutoreleasePool handing with @autorelease 2013-01-06 19:04:53 +03:00
Andreas Schiffler
ade15e571f Add tests to audio suite; update harness filter logic 2013-01-31 08:45:30 -08:00
Andreas Schiffler
2e9dea31c5 Add mouse tests; update test suites 2013-01-24 07:58:59 -08:00
Andreas Schiffler
896befb67b Add tests to mouse suite; fix VS compiler warnings in tests 2013-01-23 08:03:19 -08:00
Andreas Schiffler
b507ef3afa Add additional input validation to SDL_BuildAudioCVT; add additional tests to automation (audio, rwops) 2013-01-21 09:16:27 -08:00
Andreas Schiffler
a971c6b291 Added timer test suite 2013-01-14 08:14:53 -08:00
Andreas Schiffler
02493c6188 Fix RWops test suite crash on Linux: remove unnecessary fclose 2013-01-14 07:20:55 -08:00
Andreas Schiffler
3bc9dbe16c Add input validation to SDL_GetKeyFromScancode; fix compiler warning in testautomation driver on Linux; update keyboard test suite 2013-01-13 22:55:26 -08:00
Andreas Schiffler
b4a190fb6f Update SDL_InvalidParamError to take param name; add additional fuzzer function; add new tests to keyboard test suite; improve surface test suite 2013-01-12 22:58:12 -08:00
Andreas Schiffler
a20096403e Add new internal error message for invalid parameters; add validation of input rect in SDL_SetTextInputRect; add test cases for SDL_SetTextInputRect to keyboard suite 2013-01-11 20:36:39 -08:00