test/testautomation_clipboard.c
changeset 9617 062bfde7330a
parent 7721 bdf8c2c84e14
child 10782 1de6d4633ee6
equal deleted inserted replaced
9616:eb2a8d9cfb74 9617:062bfde7330a
   101             intResult == 0,
   101             intResult == 0,
   102             "Verify result from SDL_SetClipboardText(NULL), expected 0, got %i",
   102             "Verify result from SDL_SetClipboardText(NULL), expected 0, got %i",
   103             intResult);
   103             intResult);
   104         charResult = SDL_GetClipboardText();
   104         charResult = SDL_GetClipboardText();
   105         SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
   105         SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
       
   106         SDL_free(charResult);
   106         boolResult = SDL_HasClipboardText();
   107         boolResult = SDL_HasClipboardText();
   107         SDLTest_AssertPass("Call to SDL_HasClipboardText succeeded");
   108         SDLTest_AssertPass("Call to SDL_HasClipboardText succeeded");
   108         SDLTest_AssertCheck(
   109         SDLTest_AssertCheck(
   109             boolResult == SDL_FALSE,
   110             boolResult == SDL_FALSE,
   110             "Verify SDL_HasClipboardText returned SDL_FALSE, got %s",
   111             "Verify SDL_HasClipboardText returned SDL_FALSE, got %s",
   135     SDLTest_AssertPass("Call to SDL_HasClipboardText succeeded");
   136     SDLTest_AssertPass("Call to SDL_HasClipboardText succeeded");
   136     SDLTest_AssertCheck(
   137     SDLTest_AssertCheck(
   137         boolResult == SDL_TRUE,
   138         boolResult == SDL_TRUE,
   138         "Verify SDL_HasClipboardText returned SDL_TRUE, got %s",
   139         "Verify SDL_HasClipboardText returned SDL_TRUE, got %s",
   139         (boolResult) ? "SDL_TRUE" : "SDL_FALSE");
   140         (boolResult) ? "SDL_TRUE" : "SDL_FALSE");
       
   141     SDL_free(charResult);
   140     charResult = SDL_GetClipboardText();
   142     charResult = SDL_GetClipboardText();
   141     SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
   143     SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
   142     SDLTest_AssertCheck(
   144     SDLTest_AssertCheck(
   143         SDL_strcmp(textRef, charResult) == 0,
   145         SDL_strcmp(textRef, charResult) == 0,
   144         "Verify SDL_GetClipboardText returned correct string, expected '%s', got '%s'",
   146         "Verify SDL_GetClipboardText returned correct string, expected '%s', got '%s'",