Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e4ede41c
Commit
e4ede41c
authored
Sep 26, 2022
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme/tests: Add a test for OpenThemeData("explorer::treeview").
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
parent
b238f0af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
system.c
dlls/uxtheme/tests/system.c
+21
-0
No files found.
dlls/uxtheme/tests/system.c
View file @
e4ede41c
...
...
@@ -559,6 +559,27 @@ static void test_OpenThemeData(void)
/* Only do the next checks if we have an active theme */
SetLastError
(
0xdeadbeef
);
hTheme
=
OpenThemeData
(
hWnd
,
L"dead::beef;explorer::treeview"
);
ok
(
!
hTheme
,
"OpenThemeData() should fail
\n
"
);
ok
(
GetLastError
()
==
E_PROP_ID_UNSUPPORTED
,
"Got unexpected %#lx.
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
hTheme
=
OpenThemeData
(
hWnd
,
L"explorer::treeview"
);
todo_wine
ok
(
hTheme
!=
NULL
,
"OpenThemeData() failed
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got 0x%08lx
\n
"
,
GetLastError
());
CloseThemeData
(
hTheme
);
SetLastError
(
0xdeadbeef
);
hTheme
=
OpenThemeData
(
hWnd
,
L"deadbeef::treeview;dead::beef"
);
todo_wine
ok
(
hTheme
!=
NULL
,
"OpenThemeData() failed
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got 0x%08lx
\n
"
,
GetLastError
());
CloseThemeData
(
hTheme
);
SetLastError
(
0xdeadbeef
);
hTheme
=
OpenThemeData
(
hWnd
,
szButtonClassList
);
ok
(
hTheme
!=
NULL
,
"got NULL, expected a HTHEME handle
\n
"
);
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got 0x%08lx
\n
"
,
GetLastError
()
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment