msctf/tests: Handle an occasional unexpected SetFocus from wine.
This commit is contained in:
parent
511c76dfdf
commit
25bfe9df49
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue