37 SDLTest_AssertCheck(numkeys >= 0,
"Validate that value of numkeys is >= 0, got: %i", numkeys);
113 const char *expectedError =
"Parameter 'scancode' is invalid";
120 "Validate error message, expected: '%s', got: '%s'", expectedError, error);
205 expected =
"BrightnessUp";
212 expected =
"Keypad MemStore";
315 SDLTest_AssertCheck( result <= allStates,
"Verify result from call is valid, expected: 0 <= result <= %i, got: %i", allStates, result);
324 SDLTest_AssertCheck(result == newState,
"Verify result from call is valid, expected: %i, got: %i", newState, result);
331 SDLTest_AssertCheck(result == 0,
"Verify result from call is valid, expected: 0, got: %i", result);
334 if (currentState != 0) {
339 SDLTest_AssertCheck(result == currentState,
"Verify result from call is valid, expected: %i, got: %i", currentState, result);
385 SDLTest_AssertPass(
"Call to SDL_SetTextInputRect with refRect(x:%i,y:%i,w:%i,h:%i)", refRect.
x, refRect.
y, refRect.
w, refRect.
h);
387 (refRect.
x == testRect.
x) && (refRect.
y == testRect.
y) && (refRect.
w == testRect.
w) && (refRect.
h == testRect.
h),
388 "Check that input data was not modified, expected: x:%i,y:%i,w:%i,h:%i, got: x:%i,y:%i,w:%i,h:%i",
389 refRect.
x, refRect.
y, refRect.
w, refRect.
h,
390 testRect.
x, testRect.
y, testRect.
w, testRect.
h);
482 #if SDL_VIDEO_DRIVER_WINDOWS || SDL_VIDEO_DRIVER_ANDROID || SDL_VIDEO_DRIVER_COCOA
483 const char *expectedError =
"Parameter 'rect' is invalid";
495 #if SDL_VIDEO_DRIVER_WINDOWS || SDL_VIDEO_DRIVER_ANDROID || SDL_VIDEO_DRIVER_COCOA
501 "Validate error message, expected: '%s', got: '%s'", expectedError, error);
530 SDLTest_AssertCheck(scancode == 0,
"Validate return value from SDL_GetScancodeFromKey, expected: 0, got: %i", scancode);
595 const char *expectedError =
"Parameter 'name' is invalid";
602 "Validate error message, expected: '%s', got: '%s'", expectedError, error);