imm32/tests: We check for failure not success.
This commit is contained in:
parent
fc5c89eb2c
commit
3a9a08cb3c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue