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
5ca8bbd2
Commit
5ca8bbd2
authored
Jun 22, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme/tests: Added a bit more functional tests to OpenThemeData.
parent
7dcfbdec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
+37
-2
system.c
dlls/uxtheme/tests/system.c
+37
-2
No files found.
dlls/uxtheme/tests/system.c
View file @
5ca8bbd2
...
...
@@ -166,9 +166,10 @@ static void test_SetWindowTheme(void)
static
void
test_OpenThemeData
(
void
)
{
HTHEME
hTheme
;
HTHEME
hTheme
,
hTheme2
;
HWND
hWnd
;
BOOL
bThemeActive
;
HRESULT
hRes
;
BOOL
bDestroyed
;
WCHAR
szInvalidClassList
[]
=
{
'D'
,
'E'
,
'A'
,
'D'
,
'B'
,
'E'
,
'E'
,
'F'
,
0
};
...
...
@@ -275,6 +276,40 @@ static void test_OpenThemeData(void)
"Expected ERROR_SUCCESS, got 0x%08lx
\n
"
,
GetLastError
());
/* GetWindowTheme should return the last handle opened by OpenThemeData */
SetLastError
(
0xdeadbeef
);
hTheme2
=
pGetWindowTheme
(
hWnd
);
ok
(
hTheme
==
hTheme2
,
"Expected the same HTHEME handle (%p<->%p)
\n
"
,
hTheme
,
hTheme2
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got 0x%08lx
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
hRes
=
pCloseThemeData
(
hTheme
);
ok
(
hRes
==
S_OK
,
"Expected S_OK, got 0x%08lx
\n
"
,
hRes
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got 0x%08lx
\n
"
,
GetLastError
());
/* Close a second time */
SetLastError
(
0xdeadbeef
);
hRes
=
pCloseThemeData
(
hTheme
);
ok
(
hRes
==
S_OK
,
"Expected S_OK, got 0x%08lx
\n
"
,
hRes
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got 0x%08lx
\n
"
,
GetLastError
());
/* See if closing makes a difference for GetWindowTheme */
SetLastError
(
0xdeadbeef
);
hTheme2
=
NULL
;
hTheme2
=
pGetWindowTheme
(
hWnd
);
ok
(
hTheme
==
hTheme2
,
"Expected the same HTHEME handle (%p<->%p)
\n
"
,
hTheme
,
hTheme2
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got 0x%08lx
\n
"
,
GetLastError
());
bDestroyed
=
DestroyWindow
(
hWnd
);
if
(
!
bDestroyed
)
trace
(
"Window %p couldn't be destroyed : 0x%08lx
\n
"
,
...
...
@@ -314,7 +349,7 @@ START_TEST(system)
trace
(
"Starting test_SetWindowTheme()
\n
"
);
test_SetWindowTheme
();
/* OpenThemeData */
/* OpenThemeData
, a bit more functional now
*/
trace
(
"Starting test_OpenThemeData()
\n
"
);
test_OpenThemeData
();
...
...
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