comctl32/tests: Drop tooltips test workarounds for Windows <= 2000.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2022-01-04 23:30:12 -07:00 committed by Alexandre Julliard
parent c1bbfe17a5
commit 414123d5da
1 changed files with 11 additions and 24 deletions

View File

@ -55,8 +55,7 @@ static void test_create_tooltip(BOOL is_v6)
style = GetWindowLongA(hwnd, GWL_STYLE); style = GetWindowLongA(hwnd, GWL_STYLE);
exp_style = 0x7fffffff | WS_POPUP; exp_style = 0x7fffffff | WS_POPUP;
exp_style &= ~(WS_CHILD | WS_MAXIMIZE | WS_BORDER | WS_DLGFRAME); exp_style &= ~(WS_CHILD | WS_MAXIMIZE | WS_BORDER | WS_DLGFRAME);
ok(style == exp_style || broken(style == (exp_style | WS_BORDER)), /* nt4 */ ok(style == exp_style, "wrong style %08x/%08x\n", style, exp_style);
"wrong style %08x/%08x\n", style, exp_style);
DestroyWindow(hwnd); DestroyWindow(hwnd);
@ -243,8 +242,7 @@ static void test_customdraw(void) {
if (CD_Stages) if (CD_Stages)
{ {
/* Check CustomDraw results */ /* Check CustomDraw results */
ok(CD_Stages == expectedResults[iterationNumber].ExpectedCalls || ok(CD_Stages == expectedResults[iterationNumber].ExpectedCalls,
broken(CD_Stages == (expectedResults[iterationNumber].ExpectedCalls & ~TEST_CDDS_POSTPAINT)), /* nt4 */
"%d: CustomDraw stages %x, expected %x\n", iterationNumber, CD_Stages, "%d: CustomDraw stages %x, expected %x\n", iterationNumber, CD_Stages,
expectedResults[iterationNumber].ExpectedCalls); expectedResults[iterationNumber].ExpectedCalls);
} }
@ -503,14 +501,11 @@ todo_wine
todo_wine todo_wine
ok(!r, "Adding the tool to the tooltip succeeded!\n"); ok(!r, "Adding the tool to the tooltip succeeded!\n");
if (0) /* crashes on NT4 */ toolinfoW.hwnd = NULL;
{ toolinfoW.uId = 0x1234ABCD;
toolinfoW.hwnd = NULL; toolinfoW.lpszText = bufW;
toolinfoW.uId = 0x1234ABCD; SendMessageW(hwnd, TTM_GETTEXTW, 0, (LPARAM)&toolinfoW);
toolinfoW.lpszText = bufW; ok(toolinfoW.lpszText[0] == 0, "lpszText should be an empty string\n");
SendMessageW(hwnd, TTM_GETTEXTW, 0, (LPARAM)&toolinfoW);
ok(toolinfoW.lpszText[0] == 0, "lpszText should be an empty string\n");
}
/* text with embedded tabs */ /* text with embedded tabs */
toolinfoA.cbSize = sizeof(TTTOOLINFOA); toolinfoA.cbSize = sizeof(TTTOOLINFOA);
@ -571,9 +566,7 @@ static void test_ttm_gettoolinfo(void)
ti.lParam = 0xaaaaaaaa; ti.lParam = 0xaaaaaaaa;
r = SendMessageA(hwnd, TTM_GETTOOLINFOA, 0, (LPARAM)&ti); r = SendMessageA(hwnd, TTM_GETTOOLINFOA, 0, (LPARAM)&ti);
ok(r, "Getting tooltip info failed\n"); ok(r, "Getting tooltip info failed\n");
ok(0x1abe11ed == ti.lParam || ok(0x1abe11ed == ti.lParam, "Expected 0x1abe11ed, got %lx\n", ti.lParam);
broken(0x1abe11ed != ti.lParam), /* comctl32 < 5.81 */
"Expected 0x1abe11ed, got %lx\n", ti.lParam);
tiW.cbSize = TTTOOLINFOW_V2_SIZE; tiW.cbSize = TTTOOLINFOW_V2_SIZE;
tiW.hwnd = NULL; tiW.hwnd = NULL;
@ -582,9 +575,7 @@ static void test_ttm_gettoolinfo(void)
tiW.lpszText = NULL; tiW.lpszText = NULL;
r = SendMessageA(hwnd, TTM_GETTOOLINFOW, 0, (LPARAM)&tiW); r = SendMessageA(hwnd, TTM_GETTOOLINFOW, 0, (LPARAM)&tiW);
ok(r, "Getting tooltip info failed\n"); ok(r, "Getting tooltip info failed\n");
ok(0x1abe11ed == tiW.lParam || ok(0x1abe11ed == tiW.lParam, "Expected 0x1abe11ed, got %lx\n", tiW.lParam);
broken(0x1abe11ed != tiW.lParam), /* comctl32 < 5.81 */
"Expected 0x1abe11ed, got %lx\n", tiW.lParam);
ti.cbSize = TTTOOLINFOA_V2_SIZE; ti.cbSize = TTTOOLINFOA_V2_SIZE;
ti.uId = 0x1234ABCD; ti.uId = 0x1234ABCD;
@ -595,9 +586,7 @@ static void test_ttm_gettoolinfo(void)
ti.lParam = 0xdeadbeef; ti.lParam = 0xdeadbeef;
r = SendMessageA(hwnd, TTM_GETTOOLINFOA, 0, (LPARAM)&ti); r = SendMessageA(hwnd, TTM_GETTOOLINFOA, 0, (LPARAM)&ti);
ok(r, "Getting tooltip info failed\n"); ok(r, "Getting tooltip info failed\n");
ok(0x55555555 == ti.lParam || ok(0x55555555 == ti.lParam, "Expected 0x55555555, got %lx\n", ti.lParam);
broken(0x55555555 != ti.lParam), /* comctl32 < 5.81 */
"Expected 0x55555555, got %lx\n", ti.lParam);
DestroyWindow(hwnd); DestroyWindow(hwnd);
@ -854,9 +843,7 @@ static void test_longtextW(void)
toolinfoW.lpszText = bufW; toolinfoW.lpszText = bufW;
SendMessageW(hwnd, TTM_GETTEXTW, 0, (LPARAM)&toolinfoW); SendMessageW(hwnd, TTM_GETTEXTW, 0, (LPARAM)&toolinfoW);
textlen = lstrlenW(toolinfoW.lpszText); textlen = lstrlenW(toolinfoW.lpszText);
ok(textlen == lenW || ok(textlen == lenW, "lpszText has %d chars\n", textlen);
broken(textlen == 0 && toolinfoW.lpszText == NULL), /* nt4, kb186177 */
"lpszText has %d chars\n", textlen);
} }
DestroyWindow(hwnd); DestroyWindow(hwnd);