Commit d107b91c authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

qedit/tests: Add test for the IAMTimelineGroup interface.

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