test/testautomation_mouse.c
changeset 6921 9a29af9de577
parent 6822 18f6818ba281
child 7144 c700de9c8ed4
     1.1 --- a/test/testautomation_mouse.c	Mon Feb 25 00:54:25 2013 -0800
     1.2 +++ b/test/testautomation_mouse.c	Mon Feb 25 08:05:26 2013 -0800
     1.3 @@ -413,13 +413,13 @@
     1.4  #define MOUSE_TESTWINDOW_HEIGHT 200
     1.5  
     1.6  /**
     1.7 - * Create s test window
     1.8 + * Creates a test window
     1.9   */
    1.10 -SDL_Window *_createTestWindow()
    1.11 +SDL_Window *_createMouseSuiteTestWindow()
    1.12  {
    1.13    int posX = 100, posY = 100, width = MOUSE_TESTWINDOW_WIDTH, height = MOUSE_TESTWINDOW_HEIGHT;
    1.14    SDL_Window *window;
    1.15 -  window = SDL_CreateWindow("mouse_createTestWindow", posX, posY, width, height, 0);
    1.16 +  window = SDL_CreateWindow("mouse_createMouseSuiteTestWindow", posX, posY, width, height, 0);
    1.17    SDLTest_AssertPass("SDL_CreateWindow()");
    1.18    SDLTest_AssertCheck(window != NULL, "Check SDL_CreateWindow result");
    1.19    return window;
    1.20 @@ -428,12 +428,12 @@
    1.21  /*
    1.22   * Destroy test window  
    1.23   */
    1.24 -void _destroyTestWindow(SDL_Window *window)
    1.25 +void _destroyMouseSuiteTestWindow(SDL_Window *window)
    1.26  {
    1.27    if (window != NULL) {  
    1.28       SDL_DestroyWindow(window);
    1.29       window = NULL;
    1.30 -     SDLTest_AssertPass("SDL_DestroyWindow");
    1.31 +     SDLTest_AssertPass("SDL_DestroyWindow()");
    1.32    }
    1.33  }
    1.34  
    1.35 @@ -453,7 +453,7 @@
    1.36  	SDL_Window *window;
    1.37  	
    1.38  	/* Create test window */
    1.39 -	window = _createTestWindow();
    1.40 +	window = _createMouseSuiteTestWindow();
    1.41  	if (window == NULL) return TEST_ABORTED;
    1.42  
    1.43  	/* Mouse to random position inside window */	
    1.44 @@ -482,7 +482,7 @@
    1.45  	
    1.46  
    1.47          /* Clean up test window */	
    1.48 -	_destroyTestWindow(window);
    1.49 +	_destroyMouseSuiteTestWindow(window);
    1.50  	
    1.51  	return TEST_COMPLETED;
    1.52  }
    1.53 @@ -505,7 +505,7 @@
    1.54  	SDLTest_AssertPass("SDL_GetMouseFocus()");
    1.55  
    1.56          /* Create test window */	
    1.57 -	window = _createTestWindow();
    1.58 +	window = _createMouseSuiteTestWindow();
    1.59  	if (window == NULL) return TEST_ABORTED;
    1.60  
    1.61  	/* Mouse to random position inside window */	
    1.62 @@ -531,7 +531,7 @@
    1.63  	SDLTest_AssertPass("SDL_WarpMouseInWindow(...,%i,%i)", x, y);
    1.64  
    1.65          /* Clean up test window */	
    1.66 -	_destroyTestWindow(window);
    1.67 +	_destroyMouseSuiteTestWindow(window);
    1.68  
    1.69  	/* Pump events to update focus state */
    1.70  	SDL_PumpEvents();