msctf/tests: Correct wine_todo handling in sinks.

This commit is contained in:
Aric Stewart 2009-09-09 13:33:23 -05:00 committed by Alexandre Julliard
parent 72241b5d47
commit 017c84e75e
1 changed files with 5 additions and 3 deletions

View File

@ -106,10 +106,10 @@ static inline void _sink_fire_ok(INT *sink, const CHAR* name)
winetest_trace("Ignoring %s\n",name);
return;
default:
if (todo) todo_wine
{
if (todo)
todo_wine winetest_ok(0, "Unexpected %s sink\n",name);
else
winetest_ok(0, "Unexpected %s sink\n",name);
}
}
*sink = SINK_FIRED;
}
@ -1121,8 +1121,10 @@ static void test_KeystrokeMgr(void)
tfpk.uVKey = 'A';
tfpk.uModifiers = TF_MOD_SHIFT;
test_KEV_OnSetFocus = SINK_EXPECTED;
hr = ITfKeystrokeMgr_AdviseKeyEventSink(keymgr,tid,sink,TRUE);
ok(SUCCEEDED(hr),"ITfKeystrokeMgr_AdviseKeyEventSink failed\n");
sink_check_ok(&test_KEV_OnSetFocus,"KeyEventSink_OnSetFocus");
hr = ITfKeystrokeMgr_AdviseKeyEventSink(keymgr,tid,sink,TRUE);
ok(hr == CONNECT_E_ADVISELIMIT,"Wrong return, expected CONNECT_E_ADVISELIMIT\n");
hr = ITfKeystrokeMgr_AdviseKeyEventSink(keymgr,cid,sink,TRUE);