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
8b2d5c7c
Commit
8b2d5c7c
authored
Nov 21, 2019
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Trace the iteration counter when a tooltips test fails.
Signed-off-by:
Francois Gouget
<
fgouget@free.fr
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6c50dbd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
tooltips.c
dlls/comctl32/tests/tooltips.c
+10
-10
No files found.
dlls/comctl32/tests/tooltips.c
View file @
8b2d5c7c
...
...
@@ -197,7 +197,7 @@ static void test_customdraw(void) {
50
,
50
,
300
,
300
,
NULL
,
NULL
,
NULL
,
0
);
ok
(
parent
!=
NULL
,
"
Creation of main window failed
\n
"
);
ok
(
parent
!=
NULL
,
"
%d: Creation of main window failed
\n
"
,
iterationNumber
);
/* Make it show */
ShowWindow
(
parent
,
SW_SHOWNORMAL
);
...
...
@@ -209,7 +209,7 @@ static void test_customdraw(void) {
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
parent
,
NULL
,
GetModuleHandleA
(
NULL
),
0
);
ok
(
hwndTip
!=
NULL
,
"
Creation of tooltip window failed
\n
"
);
ok
(
hwndTip
!=
NULL
,
"
%d: Creation of tooltip window failed
\n
"
,
iterationNumber
);
/* Set up parms for the wndproc to handle */
CD_Stages
=
0
;
...
...
@@ -230,7 +230,7 @@ static void test_customdraw(void) {
toolInfo
.
lParam
=
0xdeadbeef
;
GetClientRect
(
parent
,
&
toolInfo
.
rect
);
ret
=
SendMessageA
(
hwndTip
,
TTM_ADDTOOLA
,
0
,
(
LPARAM
)
&
toolInfo
);
ok
(
ret
,
"
Failed to add the tool.
\n
"
);
ok
(
ret
,
"
%d: Failed to add the tool.
\n
"
,
iterationNumber
);
/* Make tooltip appear quickly */
SendMessageA
(
hwndTip
,
TTM_SETDELAYTIME
,
TTDT_INITIAL
,
MAKELPARAM
(
1
,
0
));
...
...
@@ -245,23 +245,23 @@ static void test_customdraw(void) {
/* Check CustomDraw results */
ok
(
CD_Stages
==
expectedResults
[
iterationNumber
].
ExpectedCalls
||
broken
(
CD_Stages
==
(
expectedResults
[
iterationNumber
].
ExpectedCalls
&
~
TEST_CDDS_POSTPAINT
)),
/* nt4 */
"
CustomDraw run %d
stages %x, expected %x
\n
"
,
iterationNumber
,
CD_Stages
,
"
%d: CustomDraw
stages %x, expected %x
\n
"
,
iterationNumber
,
CD_Stages
,
expectedResults
[
iterationNumber
].
ExpectedCalls
);
}
ret
=
SendMessageA
(
hwndTip
,
TTM_GETCURRENTTOOLA
,
0
,
0
);
ok
(
ret
,
"
Failed to get current tool %#lx.
\n
"
,
ret
);
ok
(
ret
,
"
%d: Failed to get current tool %#lx.
\n
"
,
iterationNumber
,
ret
);
memset
(
&
toolInfo
,
0xcc
,
sizeof
(
toolInfo
));
toolInfo
.
cbSize
=
sizeof
(
toolInfo
);
toolInfo
.
lpszText
=
NULL
;
toolInfo
.
lpReserved
=
(
void
*
)
0xdeadbeef
;
SendMessageA
(
hwndTip
,
TTM_GETCURRENTTOOLA
,
0
,
(
LPARAM
)
&
toolInfo
);
ok
(
toolInfo
.
hwnd
==
parent
,
"
Unexpected hwnd %p.
\n
"
,
toolInfo
.
hwnd
);
ok
(
toolInfo
.
hinst
==
GetModuleHandleA
(
NULL
),
"
Unexpected hinst %p.
\n
"
,
toolInfo
.
hinst
);
ok
(
toolInfo
.
uId
==
0x1234abcd
,
"
Unexpected uId %lx.
\n
"
,
toolInfo
.
uId
);
ok
(
toolInfo
.
lParam
==
0
,
"
Unexpected lParam %lx.
\n
"
,
toolInfo
.
lParam
);
ok
(
toolInfo
.
lpReserved
==
(
void
*
)
0xdeadbeef
,
"
Unexpected lpReserved %p.
\n
"
,
toolInfo
.
lpReserved
);
ok
(
toolInfo
.
hwnd
==
parent
,
"
%d: Unexpected hwnd %p.
\n
"
,
iterationNumber
,
toolInfo
.
hwnd
);
ok
(
toolInfo
.
hinst
==
GetModuleHandleA
(
NULL
),
"
%d: Unexpected hinst %p.
\n
"
,
iterationNumber
,
toolInfo
.
hinst
);
ok
(
toolInfo
.
uId
==
0x1234abcd
,
"
%d: Unexpected uId %lx.
\n
"
,
iterationNumber
,
toolInfo
.
uId
);
ok
(
toolInfo
.
lParam
==
0
,
"
%d: Unexpected lParam %lx.
\n
"
,
iterationNumber
,
toolInfo
.
lParam
);
ok
(
toolInfo
.
lpReserved
==
(
void
*
)
0xdeadbeef
,
"
%d: Unexpected lpReserved %p.
\n
"
,
iterationNumber
,
toolInfo
.
lpReserved
);
/* Clean up */
DestroyWindow
(
hwndTip
);
...
...
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