uiautomationcore: Implement IRawElementProviderFragment::GetEmbeddedFragmentRoots for MSAA providers.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
This commit is contained in:
parent
8935dc7339
commit
a35c77fd33
2 changed files with 21 additions and 2 deletions
|
@ -3836,6 +3836,7 @@ static void test_uia_prov_from_acc_fragment_root(HWND hwnd)
|
||||||
IRawElementProviderFragmentRoot *elroot, *elroot2;
|
IRawElementProviderFragmentRoot *elroot, *elroot2;
|
||||||
IRawElementProviderFragment *elfrag, *elfrag2;
|
IRawElementProviderFragment *elfrag, *elfrag2;
|
||||||
IRawElementProviderSimple *elprov;
|
IRawElementProviderSimple *elprov;
|
||||||
|
SAFEARRAY *ret_arr;
|
||||||
ULONG old_ref;
|
ULONG old_ref;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
|
@ -3852,6 +3853,12 @@ static void test_uia_prov_from_acc_fragment_root(HWND hwnd)
|
||||||
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
|
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
|
||||||
ok(!!elfrag, "elfrag == NULL\n");
|
ok(!!elfrag, "elfrag == NULL\n");
|
||||||
|
|
||||||
|
/* GetEmbeddedFragmentRoots test. */
|
||||||
|
ret_arr = (void *)0xdeadbeef;
|
||||||
|
hr = IRawElementProviderFragment_GetEmbeddedFragmentRoots(elfrag, &ret_arr);
|
||||||
|
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
|
||||||
|
ok(!ret_arr, "ret_arr != NULL\n");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* get_FragmentRoot does the equivalent of calling
|
* get_FragmentRoot does the equivalent of calling
|
||||||
* AccessibleObjectFromWindow with OBJID_CLIENT on the HWND associated
|
* AccessibleObjectFromWindow with OBJID_CLIENT on the HWND associated
|
||||||
|
@ -4161,6 +4168,12 @@ static void test_uia_prov_from_acc_fragment_root(HWND hwnd)
|
||||||
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
|
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
|
||||||
ok(!!elfrag, "elfrag == NULL\n");
|
ok(!!elfrag, "elfrag == NULL\n");
|
||||||
|
|
||||||
|
/* GetEmbeddedFragmentRoots test. */
|
||||||
|
ret_arr = (void *)0xdeadbeef;
|
||||||
|
hr = IRawElementProviderFragment_GetEmbeddedFragmentRoots(elfrag, &ret_arr);
|
||||||
|
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
|
||||||
|
ok(!ret_arr, "ret_arr != NULL\n");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Simple child element queries HWND as well, does not just return its
|
* Simple child element queries HWND as well, does not just return its
|
||||||
* parent.
|
* parent.
|
||||||
|
@ -4212,6 +4225,12 @@ static void test_uia_prov_from_acc_fragment_root(HWND hwnd)
|
||||||
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
|
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
|
||||||
ok(!!elfrag, "elfrag == NULL\n");
|
ok(!!elfrag, "elfrag == NULL\n");
|
||||||
|
|
||||||
|
/* GetEmbeddedFragmentRoots test. */
|
||||||
|
ret_arr = (void *)0xdeadbeef;
|
||||||
|
hr = IRawElementProviderFragment_GetEmbeddedFragmentRoots(elfrag, &ret_arr);
|
||||||
|
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
|
||||||
|
ok(!ret_arr, "ret_arr != NULL\n");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Again, same behavior as simple children. It doesn't just retrieve the
|
* Again, same behavior as simple children. It doesn't just retrieve the
|
||||||
* parent IAccessible, it queries the HWND.
|
* parent IAccessible, it queries the HWND.
|
||||||
|
|
|
@ -1005,9 +1005,9 @@ static HRESULT WINAPI msaa_fragment_get_BoundingRectangle(IRawElementProviderFra
|
||||||
static HRESULT WINAPI msaa_fragment_GetEmbeddedFragmentRoots(IRawElementProviderFragment *iface,
|
static HRESULT WINAPI msaa_fragment_GetEmbeddedFragmentRoots(IRawElementProviderFragment *iface,
|
||||||
SAFEARRAY **ret_val)
|
SAFEARRAY **ret_val)
|
||||||
{
|
{
|
||||||
FIXME("%p, %p: stub!\n", iface, ret_val);
|
TRACE("%p, %p\n", iface, ret_val);
|
||||||
*ret_val = NULL;
|
*ret_val = NULL;
|
||||||
return E_NOTIMPL;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI msaa_fragment_SetFocus(IRawElementProviderFragment *iface)
|
static HRESULT WINAPI msaa_fragment_SetFocus(IRawElementProviderFragment *iface)
|
||||||
|
|
Loading…
Add table
Reference in a new issue