Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
37052ad9
Commit
37052ad9
authored
Jan 25, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Extend TCM_SETTOOLTIPS test.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7b304a9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
tab.c
dlls/comctl32/tests/tab.c
+12
-5
No files found.
dlls/comctl32/tests/tab.c
View file @
37052ad9
...
...
@@ -974,8 +974,9 @@ static void test_getset_item(void)
static
void
test_getset_tooltips
(
void
)
{
char
toolTipText
[
32
]
=
"ToolTip Text Test"
;
HWND
hTab
,
toolTip
,
hwnd
;
const
INT
nTabs
=
5
;
HWND
hTab
,
toolTip
;
int
ret
;
hTab
=
createFilledTabControl
(
parent_wnd
,
TCS_FIXEDWIDTH
,
TCIF_TEXT
|
TCIF_IMAGE
,
nTabs
);
ok
(
hTab
!=
NULL
,
"Failed to create tab control
\n
"
);
...
...
@@ -983,16 +984,22 @@ static void test_getset_tooltips(void)
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
toolTip
=
create_tooltip
(
hTab
,
toolTipText
);
SendMessageA
(
hTab
,
TCM_SETTOOLTIPS
,
(
LPARAM
)
toolTip
,
0
);
ok
(
toolTip
==
(
HWND
)
SendMessageA
(
hTab
,
TCM_GETTOOLTIPS
,
0
,
0
),
"ToolTip was set incorrectly.
\n
"
);
ret
=
SendMessageA
(
hTab
,
TCM_SETTOOLTIPS
,
(
WPARAM
)
toolTip
,
0
);
ok
(
ret
==
0
,
"Unexpected ret value %d.
\n
"
,
ret
);
hwnd
=
(
HWND
)
SendMessageA
(
hTab
,
TCM_GETTOOLTIPS
,
0
,
0
);
ok
(
toolTip
==
hwnd
,
"Unexpected tooltip window.
\n
"
);
SendMessageA
(
hTab
,
TCM_SETTOOLTIPS
,
0
,
0
);
ok
(
!
SendMessageA
(
hTab
,
TCM_GETTOOLTIPS
,
0
,
0
),
"ToolTip was set incorrectly.
\n
"
);
ret
=
SendMessageA
(
hTab
,
TCM_SETTOOLTIPS
,
0
,
0
);
ok
(
ret
==
0
,
"Unexpected ret value %d.
\n
"
,
ret
);
hwnd
=
(
HWND
)
SendMessageA
(
hTab
,
TCM_GETTOOLTIPS
,
0
,
0
);
ok
(
hwnd
==
NULL
,
"Unexpected tooltip window.
\n
"
);
ok
(
IsWindow
(
toolTip
),
"Expected tooltip window to be alive.
\n
"
);
ok_sequence
(
sequences
,
TAB_SEQ_INDEX
,
getset_tooltip_seq
,
"Getset tooltip test sequence"
,
TRUE
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
getset_tooltip_parent_seq
,
"Getset tooltip test parent sequence"
,
TRUE
);
DestroyWindow
(
hTab
);
DestroyWindow
(
toolTip
);
}
static
void
test_misc
(
void
)
...
...
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