Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5353b259
Commit
5353b259
authored
Mar 06, 2023
by
Connor McAdams
Committed by
Alexandre Julliard
Mar 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uiautomationcore: Implement IUIAutomation::get_RawViewCondition.
Signed-off-by:
Connor McAdams
<
cmcadams@codeweavers.com
>
parent
a4bb7c12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
uiautomation.c
dlls/uiautomationcore/tests/uiautomation.c
+23
-0
uia_com_client.c
dlls/uiautomationcore/uia_com_client.c
+3
-2
No files found.
dlls/uiautomationcore/tests/uiautomation.c
View file @
5353b259
...
...
@@ -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
{
...
...
dlls/uiautomationcore/uia_com_client.c
View file @
5353b259
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment