Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
14b4e851
Commit
14b4e851
authored
Jun 19, 2006
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme/tests: Added test for IsAppThemed and grouped it with IsThemeActive.
parent
98d4c2b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
4 deletions
+37
-4
system.c
dlls/uxtheme/tests/system.c
+37
-4
No files found.
dlls/uxtheme/tests/system.c
View file @
14b4e851
...
...
@@ -26,6 +26,7 @@
#include "wine/test.h"
static
HRESULT
(
WINAPI
*
pCloseThemeData
)(
HTHEME
);
static
BOOL
(
WINAPI
*
pIsAppThemed
)(
VOID
);
static
BOOL
(
WINAPI
*
pIsThemeActive
)(
VOID
);
static
HTHEME
(
WINAPI
*
pOpenThemeData
)(
HWND
,
LPCWSTR
);
static
HRESULT
(
WINAPI
*
pSetWindowTheme
)(
HWND
,
LPCWSTR
,
LPCWSTR
);
...
...
@@ -50,6 +51,7 @@ static BOOL InitFunctionPtrs(void)
if
(
hUxtheme
)
{
UXTHEME_GET_PROC
(
CloseThemeData
)
UXTHEME_GET_PROC
(
IsAppThemed
)
UXTHEME_GET_PROC
(
IsThemeActive
)
UXTHEME_GET_PROC
(
OpenThemeData
)
UXTHEME_GET_PROC
(
SetWindowTheme
)
...
...
@@ -57,6 +59,36 @@ static BOOL InitFunctionPtrs(void)
return
TRUE
;
}
static
void
test_IsThemed
(
void
)
{
BOOL
bThemeActive
;
BOOL
bAppThemed
;
SetLastError
(
0xdeadbeef
);
bThemeActive
=
pIsThemeActive
();
trace
(
"Theming is %s
\n
"
,
(
bThemeActive
)
?
"active"
:
"inactive"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got 0x%08lx
\n
"
,
GetLastError
());
/* This test is not themed */
SetLastError
(
0xdeadbeef
);
bAppThemed
=
pIsAppThemed
();
if
(
bThemeActive
)
todo_wine
ok
(
bAppThemed
==
FALSE
,
"Expected FALSE as this test executable is not (yet) themed.
\n
"
);
else
/* Although Wine currently returns FALSE, the logic behind it is wrong. It is not a todo_wine though in the testing sense */
ok
(
bAppThemed
==
FALSE
,
"Expected FALSE as this test executable is not (yet) themed.
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got 0x%08lx
\n
"
,
GetLastError
());
}
static
void
test_SetWindowTheme
(
void
)
{
HRESULT
hRes
;
...
...
@@ -88,10 +120,6 @@ static void test_OpenThemeData(void)
SetLastError
(
0xdeadbeef
);
bThemeActive
=
pIsThemeActive
();
todo_wine
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got 0x%08lx
\n
"
,
GetLastError
());
/* All NULL */
SetLastError
(
0xdeadbeef
);
...
...
@@ -204,6 +232,11 @@ START_TEST(system)
* only show input/return behaviour
*/
/* IsThemeActive and IsAppThemed */
trace
(
"Starting test_IsThemed()
\n
"
);
if
(
pIsAppThemed
&&
pIsThemeActive
)
test_IsThemed
();
/* SetWindowTheme */
trace
(
"Starting test_SetWindowTheme()
\n
"
);
if
(
pSetWindowTheme
)
...
...
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