Commit 992d197d authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

uxtheme/tests: Add a test for SetWindowTheme/OpenThemeData sequence.

parent 9d8250e5
...@@ -558,6 +558,16 @@ static void test_OpenThemeData(void) ...@@ -558,6 +558,16 @@ static void test_OpenThemeData(void)
/* Only do the next checks if we have an active theme */ /* 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); SetLastError(0xdeadbeef);
hTheme = OpenThemeData(hWnd, L"dead::beef;explorer::treeview"); hTheme = OpenThemeData(hWnd, L"dead::beef;explorer::treeview");
todo_wine todo_wine
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment