Commit cfe5184b authored by Rafał Harabień's avatar Rafał Harabień Committed by Alexandre Julliard

comctl32/tests: Remove now unused TODO_COUNT in static control tests.

parent c1c6b4bc
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include "v6util.h" #include "v6util.h"
#define TODO_COUNT 1
#define CTRL_ID 1995 #define CTRL_ID 1995
static HWND hMainWnd; static HWND hMainWnd;
...@@ -79,7 +77,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara ...@@ -79,7 +77,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
return DefWindowProcA(hwnd, msg, wparam, lparam); return DefWindowProcA(hwnd, msg, wparam, lparam);
} }
static void test_updates(int style, int flags) static void test_updates(int style)
{ {
HWND hStatic = create_static(style); HWND hStatic = create_static(style);
RECT r1 = {5, 5, 30, 30}, rcClient; RECT r1 = {5, 5, 30, 30}, rcClient;
...@@ -130,13 +128,7 @@ static void test_updates(int style, int flags) ...@@ -130,13 +128,7 @@ static void test_updates(int style, int flags)
else else
exp = 2; /* SS_ETCHEDHORZ/SS_ETCHEDVERT have empty client rect so WM_CTLCOLORSTATIC is sent only when parent window is invalidated */ exp = 2; /* SS_ETCHEDHORZ/SS_ETCHEDVERT have empty client rect so WM_CTLCOLORSTATIC is sent only when parent window is invalidated */
if (flags & TODO_COUNT) ok(g_nReceivedColorStatic == exp, "expected %u, got %u\n", exp, g_nReceivedColorStatic);
todo_wine
ok(g_nReceivedColorStatic == exp, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
else if ((style & SS_TYPEMASK) == SS_ICON || (style & SS_TYPEMASK) == SS_BITMAP)
ok(g_nReceivedColorStatic == exp, "Unexpected %u got %u\n", exp, g_nReceivedColorStatic);
else
ok(g_nReceivedColorStatic == exp, "Unexpected WM_CTLCOLORSTATIC value %d\n", g_nReceivedColorStatic);
DestroyWindow(hStatic); DestroyWindow(hStatic);
} }
...@@ -422,21 +414,21 @@ START_TEST(static) ...@@ -422,21 +414,21 @@ START_TEST(static)
GetModuleHandleA(NULL), NULL); GetModuleHandleA(NULL), NULL);
ShowWindow(hMainWnd, SW_SHOW); ShowWindow(hMainWnd, SW_SHOW);
test_updates(0, 0); test_updates(0);
test_updates(SS_ICON, 0); test_updates(SS_ICON);
test_updates(SS_BLACKRECT, 0); test_updates(SS_BLACKRECT);
test_updates(SS_WHITERECT, 0); test_updates(SS_WHITERECT);
test_updates(SS_BLACKFRAME, 0); test_updates(SS_BLACKFRAME);
test_updates(SS_WHITEFRAME, 0); test_updates(SS_WHITEFRAME);
test_updates(SS_USERITEM, 0); test_updates(SS_USERITEM);
test_updates(SS_SIMPLE, 0); test_updates(SS_SIMPLE);
test_updates(SS_OWNERDRAW, 0); test_updates(SS_OWNERDRAW);
test_updates(SS_BITMAP, 0); test_updates(SS_BITMAP);
test_updates(SS_BITMAP | SS_CENTERIMAGE, 0); test_updates(SS_BITMAP | SS_CENTERIMAGE);
test_updates(SS_ETCHEDHORZ, 0); test_updates(SS_ETCHEDHORZ);
test_updates(SS_ETCHEDVERT, 0); test_updates(SS_ETCHEDVERT);
test_updates(SS_ETCHEDFRAME, 0); test_updates(SS_ETCHEDFRAME);
test_updates(SS_SUNKEN, 0); test_updates(SS_SUNKEN);
test_set_text(); test_set_text();
test_set_image(); test_set_image();
test_STM_SETIMAGE(); test_STM_SETIMAGE();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment