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
bf430421
Commit
bf430421
authored
Dec 14, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Add a test to check built-in comctl32 classes.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
685a4b50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
14 deletions
+44
-14
misc.c
dlls/comctl32/tests/misc.c
+44
-14
No files found.
dlls/comctl32/tests/misc.c
View file @
bf430421
...
...
@@ -338,7 +338,7 @@ static void test_LoadIconWithScaleDown(void)
FreeLibrary
(
hinst
);
}
static
void
check_class
(
const
char
*
name
,
int
must_exist
,
UINT
style
,
UINT
ignore
)
static
void
check_class
(
const
char
*
name
,
int
must_exist
,
UINT
style
,
UINT
ignore
,
BOOL
v6
)
{
WNDCLASSA
wc
;
...
...
@@ -347,14 +347,14 @@ static void check_class( const char *name, int must_exist, UINT style, UINT igno
char
buff
[
64
];
HWND
hwnd
;
todo_wine_if
(
strcmp
(
name
,
"Button"
)
&&
strcmp
(
name
,
"ComboBox"
)
&&
strcmp
(
name
,
"Edit"
)
&&
strcmp
(
name
,
"Static"
)
&&
strcmp
(
name
,
"ListBox"
)
&&
strcmp
(
name
,
"ComboLBox"
))
todo_wine_if
(
!
strcmp
(
name
,
"SysLink"
)
&&
!
must_exist
&&
!
v6
)
ok
(
must_exist
,
"System class %s should %sexist
\n
"
,
name
,
must_exist
?
""
:
"NOT "
);
if
(
!
must_exist
)
return
;
todo_wine_if
(
!
strcmp
(
name
,
"ScrollBar"
)
||
(
!
strcmp
(
name
,
"tooltips_class32"
)
&&
v6
))
ok
(
!
(
~
wc
.
style
&
style
&
~
ignore
),
"System class %s is missing bits %x (%08x/%08x)
\n
"
,
name
,
~
wc
.
style
&
style
,
wc
.
style
,
style
);
todo_wine_if
((
!
strcmp
(
name
,
"tooltips_class32"
)
&&
v6
)
||
!
strcmp
(
name
,
"SysLink"
))
ok
(
!
(
wc
.
style
&
~
style
),
"System class %s has extra bits %x (%08x/%08x)
\n
"
,
name
,
wc
.
style
&
~
style
,
wc
.
style
,
style
);
ok
(
!
wc
.
hInstance
,
"System class %s has hInstance %p
\n
"
,
name
,
wc
.
hInstance
);
...
...
@@ -373,13 +373,40 @@ todo_wine_if(strcmp(name, "Button") &&
static
void
test_builtin_classes
(
void
)
{
/* check style bits */
check_class
(
"Button"
,
1
,
CS_PARENTDC
|
CS_DBLCLKS
|
CS_HREDRAW
|
CS_VREDRAW
|
CS_GLOBALCLASS
,
0
);
check_class
(
"ComboBox"
,
1
,
CS_PARENTDC
|
CS_DBLCLKS
|
CS_HREDRAW
|
CS_VREDRAW
|
CS_GLOBALCLASS
,
0
);
check_class
(
"Edit"
,
1
,
CS_PARENTDC
|
CS_DBLCLKS
|
CS_GLOBALCLASS
,
0
);
check_class
(
"ListBox"
,
1
,
CS_PARENTDC
|
CS_DBLCLKS
|
CS_GLOBALCLASS
,
0
);
check_class
(
"ScrollBar"
,
1
,
CS_PARENTDC
|
CS_DBLCLKS
|
CS_HREDRAW
|
CS_VREDRAW
|
CS_GLOBALCLASS
,
0
);
check_class
(
"Static"
,
1
,
CS_PARENTDC
|
CS_DBLCLKS
|
CS_GLOBALCLASS
,
0
);
check_class
(
"ComboLBox"
,
1
,
CS_SAVEBITS
|
CS_DBLCLKS
|
CS_DROPSHADOW
|
CS_GLOBALCLASS
,
CS_DROPSHADOW
);
check_class
(
"Button"
,
1
,
CS_PARENTDC
|
CS_DBLCLKS
|
CS_HREDRAW
|
CS_VREDRAW
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
"ComboBox"
,
1
,
CS_PARENTDC
|
CS_DBLCLKS
|
CS_HREDRAW
|
CS_VREDRAW
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
"Edit"
,
1
,
CS_PARENTDC
|
CS_DBLCLKS
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
"ListBox"
,
1
,
CS_PARENTDC
|
CS_DBLCLKS
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
"ScrollBar"
,
1
,
CS_PARENTDC
|
CS_DBLCLKS
|
CS_HREDRAW
|
CS_VREDRAW
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
"Static"
,
1
,
CS_PARENTDC
|
CS_DBLCLKS
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
"ComboLBox"
,
1
,
CS_SAVEBITS
|
CS_DBLCLKS
|
CS_DROPSHADOW
|
CS_GLOBALCLASS
,
CS_DROPSHADOW
,
FALSE
);
}
static
void
test_comctl32_classes
(
BOOL
v6
)
{
check_class
(
ANIMATE_CLASSA
,
1
,
CS_DBLCLKS
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
WC_COMBOBOXEXA
,
1
,
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
DATETIMEPICK_CLASSA
,
1
,
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
WC_HEADERA
,
1
,
CS_DBLCLKS
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
HOTKEY_CLASSA
,
1
,
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
WC_IPADDRESSA
,
1
,
CS_DBLCLKS
|
CS_HREDRAW
|
CS_VREDRAW
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
WC_LISTVIEWA
,
1
,
CS_DBLCLKS
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
MONTHCAL_CLASSA
,
1
,
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
WC_NATIVEFONTCTLA
,
1
,
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
WC_PAGESCROLLERA
,
1
,
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
PROGRESS_CLASSA
,
1
,
CS_HREDRAW
|
CS_VREDRAW
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
REBARCLASSNAMEA
,
1
,
CS_DBLCLKS
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
STATUSCLASSNAMEA
,
1
,
CS_DBLCLKS
|
CS_VREDRAW
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
WC_TABCONTROLA
,
1
,
CS_DBLCLKS
|
CS_HREDRAW
|
CS_VREDRAW
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
TOOLBARCLASSNAMEA
,
1
,
CS_DBLCLKS
|
CS_GLOBALCLASS
,
0
,
FALSE
);
if
(
v6
)
check_class
(
TOOLTIPS_CLASSA
,
1
,
CS_DBLCLKS
|
CS_HREDRAW
|
CS_VREDRAW
|
CS_GLOBALCLASS
|
CS_DROPSHADOW
,
CS_SAVEBITS
|
CS_HREDRAW
|
CS_VREDRAW
/* XP */
,
TRUE
);
else
check_class
(
TOOLTIPS_CLASSA
,
1
,
CS_DBLCLKS
|
CS_GLOBALCLASS
|
CS_SAVEBITS
,
CS_HREDRAW
|
CS_VREDRAW
/* XP */
,
FALSE
);
check_class
(
TRACKBAR_CLASSA
,
1
,
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
WC_TREEVIEWA
,
1
,
CS_DBLCLKS
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
UPDOWN_CLASSA
,
1
,
CS_HREDRAW
|
CS_VREDRAW
|
CS_GLOBALCLASS
,
0
,
FALSE
);
check_class
(
"SysLink"
,
v6
,
CS_GLOBALCLASS
,
0
,
FALSE
);
}
START_TEST
(
misc
)
...
...
@@ -393,9 +420,12 @@ START_TEST(misc)
test_GetPtrAW
();
test_Alloc
();
test_comctl32_classes
(
FALSE
);
if
(
!
load_v6_module
(
&
ctx_cookie
,
&
hCtx
))
return
;
test_comctl32_classes
(
TRUE
);
test_builtin_classes
();
test_LoadIconWithScaleDown
();
...
...
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