msctf/tests: Handle an occasional unexpected SetFocus from wine.

This commit is contained in:
Aric Stewart 2009-11-07 09:52:09 -06:00 committed by Alexandre Julliard
parent 511c76dfdf
commit 25bfe9df49
1 changed files with 5 additions and 2 deletions

View File

@ -1997,11 +1997,14 @@ static void test_AssociateFocus(void)
test_CurrentFocus = dm2;
test_PrevFocus = dm1;
test_OnSetFocus = SINK_EXPECTED;
test_OnSetFocus = SINK_OPTIONAL; /* wine and Winxp */
ShowWindow(wnd2,SW_SHOWNORMAL);
SetFocus(wnd2);
processPendingMessages();
sink_check_ok(&test_OnSetFocus,"OnSetFocus");
test_CurrentFocus = FOCUS_IGNORE; /* occasional wine race */
test_PrevFocus = FOCUS_IGNORE; /* occasional wine race */
test_OnSetFocus = SINK_IGNORE; /* occasional wine race */
processPendingMessages();
ShowWindow(wnd3,SW_SHOWNORMAL);
SetFocus(wnd3);