mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-22 17:11:43 +00:00
Updated automated test now that getting an invalid property isn't an error
This commit is contained in:
@@ -1682,13 +1682,11 @@ static int video_getSetWindowData(void *arg)
|
|||||||
result = (char *)SDL_GetProperty(SDL_GetWindowProperties(window), NULL, NULL);
|
result = (char *)SDL_GetProperty(SDL_GetWindowProperties(window), NULL, NULL);
|
||||||
SDLTest_AssertPass("Call to SDL_GetWindowData(name=NULL)");
|
SDLTest_AssertPass("Call to SDL_GetWindowData(name=NULL)");
|
||||||
SDLTest_AssertCheck(result == NULL, "Validate that result is NULL");
|
SDLTest_AssertCheck(result == NULL, "Validate that result is NULL");
|
||||||
checkInvalidParameterError();
|
|
||||||
|
|
||||||
/* Get data with empty name */
|
/* Get data with empty name */
|
||||||
result = (char *)SDL_GetProperty(SDL_GetWindowProperties(window), "", NULL);
|
result = (char *)SDL_GetProperty(SDL_GetWindowProperties(window), "", NULL);
|
||||||
SDLTest_AssertPass("Call to SDL_GetWindowData(name='')");
|
SDLTest_AssertPass("Call to SDL_GetWindowData(name='')");
|
||||||
SDLTest_AssertCheck(result == NULL, "Validate that result is NULL");
|
SDLTest_AssertCheck(result == NULL, "Validate that result is NULL");
|
||||||
checkInvalidParameterError();
|
|
||||||
|
|
||||||
/* Clean up */
|
/* Clean up */
|
||||||
destroyVideoSuiteTestWindow(window);
|
destroyVideoSuiteTestWindow(window);
|
||||||
|
Reference in New Issue
Block a user