mirror of
https://github.com/reactos/reactos.git
synced 2025-04-05 21:21:33 +00:00
[QEDIT_WINETEST] Sync with Wine 3.0. CORE-14225
This commit is contained in:
parent
defffcf1f0
commit
4d8fc348d7
1 changed files with 38 additions and 0 deletions
|
@ -106,11 +106,49 @@ static void test_timeline(void)
|
|||
hr = IAMTimelineObj_GetTimelineNoRef(obj, &timeline2);
|
||||
ok(hr == E_NOINTERFACE, "Expected E_NOINTERFACE got %08x\n", hr);
|
||||
ok(!timeline2, "Expected NULL got %p\n", timeline2);
|
||||
|
||||
IAMTimelineObj_Release(obj);
|
||||
IAMTimeline_Release(timeline);
|
||||
}
|
||||
|
||||
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;
|
||||
IAMTimelineObj *obj2;
|
||||
|
||||
hr = IAMTimelineObj_QueryInterface(obj, &IID_IAMTimelineGroup, (void **)&group);
|
||||
ok(hr == S_OK, "got %08x\n", hr);
|
||||
|
||||
hr = IAMTimelineGroup_QueryInterface(group, &IID_IAMTimelineObj, (void **)&obj2);
|
||||
ok(hr == S_OK, "got %08x\n", hr);
|
||||
ok(obj == obj2, "Different pointers\n");
|
||||
IAMTimelineObj_Release(obj2);
|
||||
|
||||
IAMTimelineGroup_Release(group);
|
||||
|
||||
IAMTimelineObj_Release(obj);
|
||||
}
|
||||
|
||||
IAMTimeline_Release(timeline);
|
||||
}
|
||||
|
||||
START_TEST(timeline)
|
||||
{
|
||||
CoInitialize(NULL);
|
||||
test_timeline();
|
||||
test_timelineobj_interfaces();
|
||||
CoUninitialize();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue