test/testautomation_clipboard.c
changeset 7721 bdf8c2c84e14
parent 7719 31b5f9ff36ca
child 9617 062bfde7330a
equal deleted inserted replaced
7720:f9a649383362 7721:bdf8c2c84e14
   116     SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
   116     SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
   117     SDLTest_AssertCheck(
   117     SDLTest_AssertCheck(
   118         charResult != NULL,
   118         charResult != NULL,
   119         "Verify SDL_GetClipboardText did not return NULL");
   119         "Verify SDL_GetClipboardText did not return NULL");
   120     SDLTest_AssertCheck(
   120     SDLTest_AssertCheck(
   121         SDL_strlen(charResult) == 0,
   121         charResult[0] == '\0',
   122         "Verify SDL_GetClipboardText returned string with length 0, got length %i",
   122         "Verify SDL_GetClipboardText returned string with length 0, got length %i",
   123         SDL_strlen(charResult));
   123         SDL_strlen(charResult));
   124     intResult = SDL_SetClipboardText((const char *)text);
   124     intResult = SDL_SetClipboardText((const char *)text);
   125     SDLTest_AssertPass("Call to SDL_SetClipboardText succeeded");
   125     SDLTest_AssertPass("Call to SDL_SetClipboardText succeeded");
   126     SDLTest_AssertCheck(
   126     SDLTest_AssertCheck(