[PATCH 6/6] Fix test failures on Vista/W2K8
Paul Vriens
Paul.Vriens.Wine at gmail.com
Thu Sep 10 02:08:35 CDT 2009
---
dlls/imm32/tests/imm32.c | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/dlls/imm32/tests/imm32.c b/dlls/imm32/tests/imm32.c
index 1951242..edda55b 100644
--- a/dlls/imm32/tests/imm32.c
+++ b/dlls/imm32/tests/imm32.c
@@ -191,10 +191,12 @@ static void test_ImmNotifyIME(void) {
imc = ImmGetContext(hwnd);
msg_spy_flush_msgs();
+ ret = ImmNotifyIME(imc, NI_COMPOSITIONSTR, CPS_CANCEL, 0);
todo_wine
{
- ok(!ImmNotifyIME(imc, NI_COMPOSITIONSTR, CPS_CANCEL, 0), "Canceling an "
- "empty composition string should fail.\n");
+ ok(!ret ||
+ broken(ret), /* Vista and W2K8 */
+ "Canceling an empty composition string should fail.\n");
}
ok(!msg_spy_find_msg(WM_IME_COMPOSITION), "Windows does not post "
"WM_IME_COMPOSITION in response to NI_COMPOSITIONSTR / CPS_CANCEL, if "
@@ -214,10 +216,12 @@ static void test_ImmNotifyIME(void) {
msg_spy_flush_msgs();
+ ret = ImmNotifyIME(imc, NI_COMPOSITIONSTR, CPS_CANCEL, 0);
todo_wine
{
- ok(!ImmNotifyIME(imc, NI_COMPOSITIONSTR, CPS_CANCEL, 0), "Canceling an "
- "empty composition string should fail.\n");
+ ok(!ret ||
+ broken(ret), /* Vista and W2K8 */
+ "Canceling an empty composition string should fail.\n");
}
ok(!msg_spy_find_msg(WM_IME_COMPOSITION), "Windows does not post "
"WM_IME_COMPOSITION in response to NI_COMPOSITIONSTR / CPS_CANCEL, if "
@@ -264,7 +268,9 @@ static void test_ImmSetCompositionString(void)
ret = ImmSetCompositionStringW(imc, SCS_SETSTR, NULL, 0, NULL, 0);
todo_wine
- ok(!ret, "ImmSetCompositionStringW() succeeded.\n");
+ ok(!ret ||
+ broken(ret), /* Vista and W2K8 */
+ "ImmSetCompositionStringW() succeeded.\n");
ret = ImmSetCompositionStringW(imc, SCS_SETSTR | SCS_CHANGEATTR,
NULL, 0, NULL, 0);
--
1.6.2.5
--------------000804000607000905060403--
More information about the wine-patches
mailing list