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
1b5aaa16
Commit
1b5aaa16
authored
Nov 12, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Test more return values (Clang).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c4b894db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
listview.c
dlls/comctl32/tests/listview.c
+15
-0
status.c
dlls/comctl32/tests/status.c
+1
-0
toolbar.c
dlls/comctl32/tests/toolbar.c
+0
-2
No files found.
dlls/comctl32/tests/listview.c
View file @
1b5aaa16
...
...
@@ -5342,6 +5342,7 @@ static void test_header_notification2(void)
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_ITEMCHANGINGW
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
parent_header_notify_seq
[
0
].
id
=
HDN_ITEMCHANGINGA
;
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_header_notify_seq
,
"header notify, parent"
,
TRUE
);
...
...
@@ -5350,6 +5351,7 @@ static void test_header_notification2(void)
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_ITEMCHANGEDW
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
parent_header_notify_seq
[
0
].
id
=
HDN_ITEMCHANGEDA
;
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_header_notify_seq
,
"header notify, parent"
,
TRUE
);
...
...
@@ -5360,30 +5362,35 @@ static void test_header_notification2(void)
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_ITEMCLICKW
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_header_click_seq
,
"header notify, parent"
,
FALSE
);
ok
(
nmhdr
.
hdr
.
code
==
HDN_ITEMCLICKA
,
"Expected ANSI notification code
\n
"
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_ITEMDBLCLICKW
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"header notify, parent"
,
FALSE
);
ok
(
nmhdr
.
hdr
.
code
==
HDN_ITEMDBLCLICKW
,
"Expected Unicode notification code
\n
"
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_DIVIDERDBLCLICKW
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_header_divider_dclick_seq
,
"header notify, parent"
,
TRUE
);
ok
(
nmhdr
.
hdr
.
code
==
HDN_DIVIDERDBLCLICKA
,
"Expected ANSI notification code
\n
"
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_BEGINTRACKW
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"header notify, parent"
,
FALSE
);
ok
(
nmhdr
.
hdr
.
code
==
HDN_BEGINTRACKW
,
"Expected Unicode notification code
\n
"
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_ENDTRACKW
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
parent_header_notify_seq
[
0
].
id
=
HDN_ENDTRACKA
;
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_header_notify_seq
,
"header notify, parent"
,
FALSE
);
...
...
@@ -5391,6 +5398,7 @@ static void test_header_notification2(void)
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_TRACKW
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
parent_header_notify_seq
[
0
].
id
=
HDN_TRACKA
;
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_header_notify_seq
,
"header notify, parent"
,
FALSE
);
...
...
@@ -5398,17 +5406,20 @@ static void test_header_notification2(void)
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_BEGINDRAG
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
1
,
"got %d
\n
"
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"header notify, parent"
,
FALSE
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_ENDDRAG
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
parent_header_notify_seq
[
0
].
id
=
HDN_ENDDRAG
;
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_header_notify_seq
,
"header notify, parent"
,
FALSE
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_FILTERCHANGE
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
parent_header_notify_seq
[
0
].
id
=
HDN_FILTERCHANGE
;
parent_header_notify_seq
[
0
].
flags
|=
optional
;
/* NT4 does not send this message */
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_header_notify_seq
,
...
...
@@ -5417,21 +5428,25 @@ static void test_header_notification2(void)
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_BEGINFILTEREDIT
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"header notify, parent"
,
FALSE
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_ENDFILTEREDIT
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"header notify, parent"
,
FALSE
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_ITEMSTATEICONCLICK
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"header notify, parent"
,
FALSE
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
nmhdr
.
hdr
.
code
=
HDN_ITEMKEYDOWN
;
ret
=
SendMessageW
(
list
,
WM_NOTIFY
,
0
,
(
LPARAM
)
&
nmhdr
);
ok
(
ret
==
0
,
"got %d
\n
"
,
ret
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
empty_seq
,
"header notify, parent"
,
FALSE
);
...
...
dlls/comctl32/tests/status.c
View file @
1b5aaa16
...
...
@@ -344,6 +344,7 @@ static void test_status_control(void)
r
=
SendMessageA
(
hWndStatus
,
SB_SETTEXTA
,
0
,
(
LPARAM
)
chstr
);
expect
(
TRUE
,
r
);
r
=
SendMessageA
(
hWndStatus
,
SB_GETTEXTA
,
0
,
(
LPARAM
)
charArray
);
ok
(
r
==
strlen
(
charArray
),
"got %d
\n
"
,
r
);
/* substitution with single space */
if
(
ch
>
0x00
&&
ch
<
0x20
&&
ch
!=
'\t'
)
chstr
[
5
]
=
' '
;
...
...
dlls/comctl32/tests/toolbar.c
View file @
1b5aaa16
...
...
@@ -1536,7 +1536,6 @@ static void test_sizes(void)
/* Single non-BTNS_AUTOSIZE button with string with TBSTYLE_EX_MIXEDBUTTONS set. */
rebuild_toolbar
(
&
hToolbar
);
SendMessageA
(
hToolbar
,
TB_SETEXTENDEDSTYLE
,
0
,
TBSTYLE_EX_MIXEDBUTTONS
);
style
=
SendMessageA
(
hToolbar
,
TB_GETSTYLE
,
0
,
0
);
ok
(
SendMessageA
(
hToolbar
,
TB_ADDBUTTONSA
,
1
,
(
LPARAM
)
&
buttons4
[
1
])
==
1
,
"TB_ADDBUTTONSA failed
\n
"
);
ok
(
SendMessageA
(
hToolbar
,
TB_SETBUTTONSIZE
,
0
,
MAKELPARAM
(
40
,
20
))
==
1
,
"TB_SETBUTTONSIZE failed
\n
"
);
SendMessageA
(
hToolbar
,
TB_AUTOSIZE
,
0
,
0
);
...
...
@@ -1545,7 +1544,6 @@ static void test_sizes(void)
/* Single non-BTNS_AUTOSIZE, BTNS_SHOWTEXT button with string with TBSTYLE_EX_MIXEDBUTTONS set. */
rebuild_toolbar
(
&
hToolbar
);
SendMessageA
(
hToolbar
,
TB_SETEXTENDEDSTYLE
,
0
,
TBSTYLE_EX_MIXEDBUTTONS
);
style
=
SendMessageA
(
hToolbar
,
TB_GETSTYLE
,
0
,
0
);
ok
(
SendMessageA
(
hToolbar
,
TB_ADDBUTTONSA
,
1
,
(
LPARAM
)
&
buttons4
[
2
])
==
1
,
"TB_ADDBUTTONSA failed
\n
"
);
ok
(
SendMessageA
(
hToolbar
,
TB_SETBUTTONSIZE
,
0
,
MAKELPARAM
(
40
,
20
))
==
1
,
"TB_SETBUTTONSIZE failed
\n
"
);
SendMessageA
(
hToolbar
,
TB_AUTOSIZE
,
0
,
0
);
...
...
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