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
48e8e579
Commit
48e8e579
authored
Aug 27, 2018
by
Fabian Maurer
Committed by
Alexandre Julliard
Aug 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Add a test for base class names.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
78236592
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
misc.c
dlls/comctl32/tests/misc.c
+9
-0
No files found.
dlls/comctl32/tests/misc.c
View file @
48e8e579
...
@@ -345,6 +345,9 @@ static void check_class( const char *name, int must_exist, UINT style, UINT igno
...
@@ -345,6 +345,9 @@ static void check_class( const char *name, int must_exist, UINT style, UINT igno
if
(
GetClassInfoA
(
0
,
name
,
&
wc
))
if
(
GetClassInfoA
(
0
,
name
,
&
wc
))
{
{
char
buff
[
64
];
HWND
hwnd
;
todo_wine_if
(
strcmp
(
name
,
"Button"
)
&&
todo_wine_if
(
strcmp
(
name
,
"Button"
)
&&
strcmp
(
name
,
"ComboBox"
)
&&
strcmp
(
name
,
"ComboBox"
)
&&
strcmp
(
name
,
"Edit"
)
&&
strcmp
(
name
,
"Edit"
)
&&
...
@@ -356,6 +359,12 @@ todo_wine_if(strcmp(name, "Button") &&
...
@@ -356,6 +359,12 @@ todo_wine_if(strcmp(name, "Button") &&
ok
(
!
(
wc
.
style
&
~
style
),
"System class %s has extra bits %x (%08x/%08x)
\n
"
,
ok
(
!
(
wc
.
style
&
~
style
),
"System class %s has extra bits %x (%08x/%08x)
\n
"
,
name
,
wc
.
style
&
~
style
,
wc
.
style
,
style
);
name
,
wc
.
style
&
~
style
,
wc
.
style
,
style
);
ok
(
!
wc
.
hInstance
,
"System class %s has hInstance %p
\n
"
,
name
,
wc
.
hInstance
);
ok
(
!
wc
.
hInstance
,
"System class %s has hInstance %p
\n
"
,
name
,
wc
.
hInstance
);
hwnd
=
CreateWindowA
(
name
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
NULL
,
GetModuleHandleA
(
NULL
),
0
);
ok
(
hwnd
!=
NULL
,
"Failed to create window for class %s.
\n
"
,
name
);
GetClassNameA
(
hwnd
,
buff
,
ARRAY_SIZE
(
buff
));
ok
(
!
strcmp
(
name
,
buff
),
"Unexpected class name %s, expected %s.
\n
"
,
buff
,
name
);
DestroyWindow
(
hwnd
);
}
}
else
else
ok
(
!
must_exist
,
"System class %s does not exist
\n
"
,
name
);
ok
(
!
must_exist
,
"System class %s does not exist
\n
"
,
name
);
...
...
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