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
d107b91c
Commit
d107b91c
authored
Sep 19, 2017
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Sep 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qedit/tests: Add test for the IAMTimelineGroup interface.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a5328e51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
timeline.c
dlls/qedit/tests/timeline.c
+29
-0
No files found.
dlls/qedit/tests/timeline.c
View file @
d107b91c
...
...
@@ -108,9 +108,38 @@ static void test_timeline(void)
ok
(
!
timeline2
,
"Expected NULL got %p
\n
"
,
timeline2
);
}
static
void
test_timelineobj_interfaces
(
void
)
{
HRESULT
hr
;
IAMTimeline
*
timeline
=
NULL
;
IAMTimelineObj
*
obj
;
hr
=
CoCreateInstance
(
&
CLSID_AMTimeline
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IAMTimeline
,
(
void
**
)
&
timeline
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
REGDB_E_CLASSNOTREG
),
"CoCreateInstance failed: %08x
\n
"
,
hr
);
if
(
!
timeline
)
return
;
hr
=
IAMTimeline_CreateEmptyNode
(
timeline
,
&
obj
,
TIMELINE_MAJOR_TYPE_GROUP
);
ok
(
hr
==
S_OK
,
"CreateEmptyNode failed: %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
IAMTimelineGroup
*
group
;
hr
=
IAMTimelineObj_QueryInterface
(
obj
,
&
IID_IAMTimelineGroup
,
(
void
**
)
&
group
);
todo_wine
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
IAMTimelineGroup_Release
(
group
);
IAMTimelineObj_Release
(
obj
);
}
IAMTimeline_Release
(
timeline
);
}
START_TEST
(
timeline
)
{
CoInitialize
(
NULL
);
test_timeline
();
test_timelineobj_interfaces
();
CoUninitialize
();
}
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