uiautomationcore/tests: Fix test failure on Win10v1709.
Win10v1709 doesn't respond to EVENT_OBJECT_DESTROY for COM focus event handlers. Signed-off-by: Connor McAdams <cmcadams@codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55807
This commit is contained in:
parent
b22a06281a
commit
362ea302b9
1 changed files with 7 additions and 2 deletions
|
@ -15713,13 +15713,18 @@ static void test_uia_com_event_handler_event_advisement(IUIAutomation *uia_iface
|
|||
set_uia_hwnd_expects(0, 1, 1, 2, 0); /* Only Win11 sends WM_GETOBJECT 2 times. */
|
||||
|
||||
NotifyWinEvent(EVENT_OBJECT_FOCUS, test_child_hwnd, OBJID_CLIENT, CHILDID_SELF);
|
||||
ok(msg_wait_for_all_events(method_event, 1, 2000) != WAIT_TIMEOUT, "Wait for method_event(s) timed out.\n");
|
||||
wait_res = msg_wait_for_all_events(method_event, 1, 2000);
|
||||
ok(wait_res != WAIT_TIMEOUT || broken(wait_res == WAIT_TIMEOUT), /* Win10v1709 */
|
||||
"Wait for method_event(s) timed out.\n");
|
||||
if (wait_for_clientside_callbacks(2000)) trace("Kept getting callbacks up until timeout\n");
|
||||
|
||||
set_provider_method_event_data(&Provider2, NULL, -1);
|
||||
check_uia_hwnd_expects_at_most(0, 1, 1, 2, 0);
|
||||
CHECK_CALLED_AT_MOST(child_winproc_GETOBJECT_UiaRoot, 3);
|
||||
test_provider_event_advise_added(&Provider2, UIA_AutomationFocusChangedEventId, FALSE);
|
||||
if (!winetest_platform_is_wine && (wait_res == WAIT_TIMEOUT)) /* Win10v1709 */
|
||||
test_provider_event_advise_added(&Provider2, 0, FALSE);
|
||||
else
|
||||
test_provider_event_advise_added(&Provider2, UIA_AutomationFocusChangedEventId, FALSE);
|
||||
test_provider_event_advise_added(&Provider_hwnd3, 0, FALSE);
|
||||
test_provider_event_advise_added(&Provider_nc3, 0, FALSE);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue