Commit 25bfe9df authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

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

parent 511c76df
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment