Commit 5353b259 authored by Connor McAdams's avatar Connor McAdams Committed by Alexandre Julliard

uiautomationcore: Implement IUIAutomation::get_RawViewCondition.

parent a4bb7c12
......@@ -10430,6 +10430,29 @@ static void test_CUIAutomation_condition_ifaces(IUIAutomation *uia_iface)
IUIAutomationPropertyCondition_Release(prop_cond);
IUIAutomationNotCondition_Release(not_cond);
/*
* Condition used to get the raw TreeView. Equivalent to:
* if (1)
*/
hr = IUIAutomation_get_RawViewCondition(uia_iface, NULL);
ok(hr == E_POINTER, "Unexpected hr %#lx.\n", hr);
cond = NULL;
hr = IUIAutomation_get_RawViewCondition(uia_iface, &cond);
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
ok(!!cond, "cond == NULL\n");
hr = IUIAutomationCondition_QueryInterface(cond, &IID_IUIAutomationBoolCondition, (void **)&bool_cond);
IUIAutomationCondition_Release(cond);
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
ok(!!bool_cond, "bool_cond == NULL\n");
tmp_b = FALSE;
hr = IUIAutomationBoolCondition_get_BooleanValue(bool_cond, &tmp_b);
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
ok(tmp_b == TRUE, "tmp_b != TRUE\n");
IUIAutomationBoolCondition_Release(bool_cond);
}
struct uia_com_classes {
......
......@@ -1763,8 +1763,9 @@ static HRESULT WINAPI uia_iface_get_RawViewWalker(IUIAutomation6 *iface, IUIAuto
static HRESULT WINAPI uia_iface_get_RawViewCondition(IUIAutomation6 *iface, IUIAutomationCondition **out_condition)
{
FIXME("%p, %p: stub\n", iface, out_condition);
return E_NOTIMPL;
TRACE("%p, %p\n", iface, out_condition);
return create_uia_bool_condition_iface(out_condition, ConditionType_True);
}
static HRESULT WINAPI uia_iface_get_ControlViewCondition(IUIAutomation6 *iface, IUIAutomationCondition **out_condition)
......
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