[UXTHEME_APITEST] Skip some tests that fail without a theme

This commit is contained in:
Mark Jansen 2023-02-01 19:23:36 +01:00
parent 83f076918a
commit c35e75897d
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
2 changed files with 23 additions and 6 deletions

View file

@ -186,7 +186,10 @@ void Test_Params()
ok (hr == E_HANDLE, "Expected E_HANDLE got 0x%lx error\n", hr);
hr = DrawThemeParentBackground(hWnd2, hdc, NULL);
ok (hr == S_FALSE, "Expected S_FALSE got 0x%lx error\n", hr);
if (IsThemeActive())
ok (hr == S_FALSE, "Expected S_FALSE got 0x%lx error\n", hr);
else
skip("Theme not active\n");
ReleaseDC(hWnd1, hdc);
hdc = GetDC(hWnd2);
@ -196,7 +199,10 @@ void Test_Params()
ok (hr == S_OK, "Expected success got 0x%lx error\n", hr);
hr = DrawThemeParentBackground(hWnd2, hdc, NULL);
ok (hr == S_FALSE, "Expected S_FALSE got 0x%lx error\n", hr);
if (IsThemeActive())
ok (hr == S_FALSE, "Expected S_FALSE got 0x%lx error\n", hr);
else
skip("Theme not active\n");
ReleaseDC(hWnd2, hdc);