uxtheme/tests: Add a test for SetWindowTheme/OpenThemeData sequence.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
This commit is contained in:
parent
9d8250e55e
commit
992d197d87
1 changed files with 10 additions and 0 deletions
|
@ -558,6 +558,16 @@ static void test_OpenThemeData(void)
|
|||
|
||||
/* Only do the next checks if we have an active theme */
|
||||
|
||||
hRes = SetWindowTheme(hWnd, L"explorer", NULL);
|
||||
ok(hRes == S_OK, "Got unexpected hr %#lx.\n", hRes);
|
||||
SetLastError(0xdeadbeef);
|
||||
hTheme = OpenThemeData(hWnd, L"explorer::treeview");
|
||||
todo_wine
|
||||
ok(!hTheme, "OpenThemeData() should fail\n");
|
||||
todo_wine
|
||||
ok(GetLastError() == E_PROP_ID_UNSUPPORTED, "Got unexpected %#lx.\n", GetLastError());
|
||||
SetWindowTheme(hWnd, NULL, NULL);
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
hTheme = OpenThemeData(hWnd, L"dead::beef;explorer::treeview");
|
||||
todo_wine
|
||||
|
|
Loading…
Add table
Reference in a new issue