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
0b8219da
Commit
0b8219da
authored
Jan 19, 2018
by
Thomas Faber
Committed by
Alexandre Julliard
Jan 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Fix broken ok() messages.
Signed-off-by:
Thomas Faber
<
thomas.faber@reactos.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8828a3c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
toolbar.c
dlls/comctl32/tests/toolbar.c
+4
-4
No files found.
dlls/comctl32/tests/toolbar.c
View file @
0b8219da
...
...
@@ -871,7 +871,7 @@ static void test_hotitem(void)
ok
(
ret
==
3
,
"Hot item: %lx, expected 3
\n
"
,
ret
);
g_fBlockHotItemChange
=
TRUE
;
ret
=
SendMessageA
(
hToolbar
,
TB_SETHOTITEM
,
2
,
0
);
ok
(
ret
==
3
,
"TB_SETHOTITEM returned %ld, expected
2
\n
"
,
ret
);
ok
(
ret
==
3
,
"TB_SETHOTITEM returned %ld, expected
3
\n
"
,
ret
);
ret
=
SendMessageA
(
hToolbar
,
TB_GETHOTITEM
,
0
,
0
);
ok
(
ret
==
3
,
"Hot item: %lx, expected 3
\n
"
,
ret
);
g_fBlockHotItemChange
=
FALSE
;
...
...
@@ -902,7 +902,7 @@ static void test_hotitem(void)
/* enabling the button won't change that */
SendMessageA
(
hToolbar
,
TB_ENABLEBUTTON
,
9
,
TRUE
);
ret
=
SendMessageA
(
hToolbar
,
TB_GETHOTITEM
,
0
,
0
);
ok
(
ret
==
-
1
,
"TB_
S
ETHOTITEM returned %ld, expected -1
\n
"
,
ret
);
ok
(
ret
==
-
1
,
"TB_
G
ETHOTITEM returned %ld, expected -1
\n
"
,
ret
);
/* disabling a hot button works */
ret
=
SendMessageA
(
hToolbar
,
TB_SETHOTITEM
,
3
,
0
);
...
...
@@ -910,7 +910,7 @@ static void test_hotitem(void)
g_fReceivedHotItemChange
=
FALSE
;
SendMessageA
(
hToolbar
,
TB_ENABLEBUTTON
,
7
,
FALSE
);
ret
=
SendMessageA
(
hToolbar
,
TB_GETHOTITEM
,
0
,
0
);
ok
(
ret
==
3
,
"TB_
S
ETHOTITEM returned %ld, expected 3
\n
"
,
ret
);
ok
(
ret
==
3
,
"TB_
G
ETHOTITEM returned %ld, expected 3
\n
"
,
ret
);
ok
(
g_fReceivedHotItemChange
==
FALSE
,
"Unexpected TBN_HOTITEMCHANGE
\n
"
);
SendMessageA
(
hToolbar
,
TB_SETHOTITEM
,
1
,
0
);
...
...
@@ -920,7 +920,7 @@ static void test_hotitem(void)
g_fReceivedHotItemChange
=
FALSE
;
ok
(
SendMessageA
(
hToolbar
,
TB_SETBUTTONINFOA
,
1
,
(
LPARAM
)
&
tbinfo
)
==
TRUE
,
"TB_SETBUTTONINFOA failed
\n
"
);
ret
=
SendMessageA
(
hToolbar
,
TB_GETHOTITEM
,
0
,
0
);
ok
(
ret
==
1
,
"TB_
S
ETHOTITEM returned %ld, expected 1
\n
"
,
ret
);
ok
(
ret
==
1
,
"TB_
G
ETHOTITEM returned %ld, expected 1
\n
"
,
ret
);
ok
(
g_fReceivedHotItemChange
==
FALSE
,
"Unexpected TBN_HOTITEMCHANGE
\n
"
);
DestroyWindow
(
hToolbar
);
...
...
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