Module: wine Branch: master Commit: 992d197d87e0343a28e67a80997fc2334fea6e8b URL: https://gitlab.winehq.org/wine/wine/-/commit/992d197d87e0343a28e67a80997fc23...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Thu Nov 2 12:51:04 2023 +0300
uxtheme/tests: Add a test for SetWindowTheme/OpenThemeData sequence.
Signed-off-by: Dmitry Timoshkov dmitry@baikal.ru
---
dlls/uxtheme/tests/system.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/dlls/uxtheme/tests/system.c b/dlls/uxtheme/tests/system.c index eca609b7971..de9419a032a 100644 --- a/dlls/uxtheme/tests/system.c +++ b/dlls/uxtheme/tests/system.c @@ -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