[APITESTS] Improve CloseWindow testcase (#997)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Mon, 29 Oct 2018 23:54:40 +0000 (08:54 +0900)
committerGitHub <noreply@github.com>
Mon, 29 Oct 2018 23:54:40 +0000 (08:54 +0900)
Improve the testcase for user32!CloseWindow function.

modules/rostests/apitests/user32/CloseWindow.c

index ee81056..c1aa51c 100644 (file)
@@ -172,6 +172,8 @@ START_TEST(CloseWindow)
     HWND hwnd;
     MSG msg;
 
+    ok(!CloseWindow(NULL), "CloseWindow(NULL) should be failed\n");
+
     hIcon = LoadIcon(NULL, IDI_APPLICATION);
     ok(hIcon != NULL, "hIcon was NULL\n");
     hCursor = LoadCursor(NULL, IDC_ARROW);
@@ -195,7 +197,7 @@ START_TEST(CloseWindow)
         return;
     }
 
-    hwnd = CreateWindowW(s_szClassName, L"SwitchToThisWindow", WS_OVERLAPPEDWINDOW,
+    hwnd = CreateWindowW(s_szClassName, L"CloseWindow testcase", WS_OVERLAPPEDWINDOW,
                          CW_USEDEFAULT, CW_USEDEFAULT, 100, 100,
                          NULL, NULL, GetModuleHandleW(NULL), NULL);
     ok(hwnd != NULL, "CreateWindowW failed\n");