test/testautomation_syswm.c
changeset 7191 75360622e65f
parent 6800 26c6795ec1a4
child 9219 c65108ddbeb0
     1.1 --- a/test/testautomation_syswm.c	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/test/testautomation_syswm.c	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -17,27 +17,27 @@
     1.4  syswm_getWindowWMInfo(void *arg)
     1.5  {
     1.6    SDL_bool result;
     1.7 -  SDL_Window *window; 
     1.8 +  SDL_Window *window;
     1.9    SDL_SysWMinfo info;
    1.10 -  
    1.11 +
    1.12    window = SDL_CreateWindow("", 0, 0, 0, 0, SDL_WINDOW_HIDDEN);
    1.13    SDLTest_AssertPass("Call to SDL_CreateWindow()");
    1.14    SDLTest_AssertCheck(window != NULL, "Check that value returned from SDL_CreateWindow is not NULL");
    1.15    if (window == NULL) {
    1.16       return TEST_ABORTED;
    1.17    }
    1.18 -  
    1.19 +
    1.20    /* Initialize info structure with SDL version info */
    1.21 -  SDL_VERSION(&info.version); 
    1.22 -  
    1.23 +  SDL_VERSION(&info.version);
    1.24 +
    1.25    /* Make call */
    1.26    result = SDL_GetWindowWMInfo(window, &info);
    1.27    SDLTest_AssertPass("Call to SDL_GetWindowWMInfo");
    1.28    SDLTest_Log((result == SDL_TRUE) ? "Got window information" : "Couldn't get window information");
    1.29 -                                                                                                      		
    1.30 +
    1.31    SDL_DestroyWindow(window);
    1.32    SDLTest_AssertPass("Call to SDL_DestroyWindow()");
    1.33 -  
    1.34 +
    1.35    return TEST_COMPLETED;
    1.36  }
    1.37  
    1.38 @@ -45,17 +45,17 @@
    1.39  
    1.40  /* SysWM test cases */
    1.41  static const SDLTest_TestCaseReference syswmTest1 =
    1.42 -		{ (SDLTest_TestCaseFp)syswm_getWindowWMInfo, "syswm_getWindowWMInfo", "Call to SDL_GetWindowWMInfo", TEST_ENABLED };
    1.43 +        { (SDLTest_TestCaseFp)syswm_getWindowWMInfo, "syswm_getWindowWMInfo", "Call to SDL_GetWindowWMInfo", TEST_ENABLED };
    1.44  
    1.45  /* Sequence of SysWM test cases */
    1.46  static const SDLTest_TestCaseReference *syswmTests[] =  {
    1.47 -	&syswmTest1, NULL
    1.48 +    &syswmTest1, NULL
    1.49  };
    1.50  
    1.51  /* SysWM test suite (global) */
    1.52  SDLTest_TestSuiteReference syswmTestSuite = {
    1.53 -	"SysWM",
    1.54 -	NULL,
    1.55 -	syswmTests,
    1.56 -	NULL
    1.57 +    "SysWM",
    1.58 +    NULL,
    1.59 +    syswmTests,
    1.60 +    NULL
    1.61  };