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>
This commit is contained in:
Alistair Leslie-Hughes 2017-09-19 04:10:08 +00:00 committed by Alexandre Julliard
parent a5328e51df
commit d107b91caa
1 changed files with 29 additions and 0 deletions

View File

@ -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();
}