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:
parent
a5328e51df
commit
d107b91caa
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue