quartz/tests: Add new tests about fullscreen handling.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
Eric Pouech 2024-06-08 09:14:50 +02:00 committed by Alexandre Julliard
parent 5fb9b19218
commit faa5cade4a
2 changed files with 20 additions and 0 deletions

View file

@ -2966,6 +2966,14 @@ static void test_control_delegation(void)
hr = IVideoWindow_SetWindowForeground(window, OAFALSE);
ok(hr == VFW_E_NOT_CONNECTED, "Got hr %#lx.\n", hr);
val = 0xdeadbeef;
hr = IVideoWindow_get_FullScreenMode(window, &val);
ok(hr == S_OK, "Got hr %#lx.\n", hr);
ok(val == OAFALSE, "Got fullscreen %lu\n", val);
hr = IVideoWindow_put_FullScreenMode(window, OAFALSE);
todo_wine ok(hr == S_FALSE, "Got hr %#lx.\n", hr);
hr = IFilterGraph2_RemoveFilter(graph, renderer);
ok(hr == S_OK, "Got hr %#lx.\n", hr);

View file

@ -2466,6 +2466,18 @@ static void test_video_window(void)
hr = IVideoWindow_GetMaxIdealImageSize(window, &width, &height);
todo_wine ok(hr == VFW_E_WRONG_STATE, "Got hr %#lx.\n", hr);
IVideoWindow_Release(window);
hr = IFilterGraph2_QueryInterface(graph, &IID_IVideoWindow, (void **)&window);
ok(hr == S_OK, "Got hr %#lx.\n", hr);
l = 0xdeadbeef;
hr = IVideoWindow_get_FullScreenMode(window, &l);
todo_wine ok(hr == S_OK, "Got hr %#lx.\n", hr);
todo_wine ok(l == OAFALSE, "Got fullscreenmode %ld.\n", l);
hr = IVideoWindow_put_FullScreenMode(window, l);
todo_wine ok(hr == S_FALSE, "Got hr %#lx.\n", hr);
IFilterGraph2_Release(graph);
IVideoWindow_Release(window);
IOverlay_Release(overlay);