imm32/tests: We check for failure not success.

This commit is contained in:
Paul Vriens 2008-12-18 11:41:56 +01:00 committed by Alexandre Julliard
parent fc5c89eb2c
commit 3a9a08cb3c
1 changed files with 4 additions and 12 deletions

View File

@ -262,32 +262,24 @@ static void test_ImmSetCompositionString(void)
if (!imc) if (!imc)
return; return;
SetLastError(0xdeadbeef);
ret = ImmSetCompositionStringW(imc, SCS_SETSTR, NULL, 0, NULL, 0); ret = ImmSetCompositionStringW(imc, SCS_SETSTR, NULL, 0, NULL, 0);
todo_wine todo_wine
ok(!ret, "ImmSetCompositionStringW() failed. Last error: %u\n", ok(!ret, "ImmSetCompositionStringW() succeeded.\n");
GetLastError());
SetLastError(0xdeadbeef);
ret = ImmSetCompositionStringW(imc, SCS_SETSTR | SCS_CHANGEATTR, ret = ImmSetCompositionStringW(imc, SCS_SETSTR | SCS_CHANGEATTR,
NULL, 0, NULL, 0); NULL, 0, NULL, 0);
todo_wine todo_wine
ok(!ret, "ImmSetCompositionStringW() failed. Last error: %u\n", ok(!ret, "ImmSetCompositionStringW() succeeded.\n");
GetLastError());
SetLastError(0xdeadbeef);
ret = ImmSetCompositionStringW(imc, SCS_SETSTR | SCS_CHANGECLAUSE, ret = ImmSetCompositionStringW(imc, SCS_SETSTR | SCS_CHANGECLAUSE,
NULL, 0, NULL, 0); NULL, 0, NULL, 0);
todo_wine todo_wine
ok(!ret, "ImmSetCompositionStringW() failed. Last error: %u\n", ok(!ret, "ImmSetCompositionStringW() succeeded.\n");
GetLastError());
SetLastError(0xdeadbeef);
ret = ImmSetCompositionStringW(imc, SCS_CHANGEATTR | SCS_CHANGECLAUSE, ret = ImmSetCompositionStringW(imc, SCS_CHANGEATTR | SCS_CHANGECLAUSE,
NULL, 0, NULL, 0); NULL, 0, NULL, 0);
todo_wine todo_wine
ok(!ret, "ImmSetCompositionStringW() failed. Last error: %u\n", ok(!ret, "ImmSetCompositionStringW() succeeded.\n");
GetLastError());
ImmReleaseContext(hwnd, imc); ImmReleaseContext(hwnd, imc);
} }