Updated automated test now that getting an invalid property isn't an error
parent
dc7baa415e
commit
ed615e92b7
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue