mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 15:51:49 +00:00
[UXTHEME_APITEST] Skip some tests that fail without a theme
This commit is contained in:
parent
83f076918a
commit
c35e75897d
2 changed files with 23 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue