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
414123d5
Commit
414123d5
authored
Jan 04, 2022
by
Alex Henrie
Committed by
Alexandre Julliard
Jan 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Drop tooltips test workarounds for Windows <= 2000.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c1bbfe17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
24 deletions
+11
-24
tooltips.c
dlls/comctl32/tests/tooltips.c
+11
-24
No files found.
dlls/comctl32/tests/tooltips.c
View file @
414123d5
...
...
@@ -55,8 +55,7 @@ static void test_create_tooltip(BOOL is_v6)
style
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
exp_style
=
0x7fffffff
|
WS_POPUP
;
exp_style
&=
~
(
WS_CHILD
|
WS_MAXIMIZE
|
WS_BORDER
|
WS_DLGFRAME
);
ok
(
style
==
exp_style
||
broken
(
style
==
(
exp_style
|
WS_BORDER
)),
/* nt4 */
"wrong style %08x/%08x
\n
"
,
style
,
exp_style
);
ok
(
style
==
exp_style
,
"wrong style %08x/%08x
\n
"
,
style
,
exp_style
);
DestroyWindow
(
hwnd
);
...
...
@@ -243,8 +242,7 @@ static void test_customdraw(void) {
if
(
CD_Stages
)
{
/* Check CustomDraw results */
ok
(
CD_Stages
==
expectedResults
[
iterationNumber
].
ExpectedCalls
||
broken
(
CD_Stages
==
(
expectedResults
[
iterationNumber
].
ExpectedCalls
&
~
TEST_CDDS_POSTPAINT
)),
/* nt4 */
ok
(
CD_Stages
==
expectedResults
[
iterationNumber
].
ExpectedCalls
,
"%d: CustomDraw stages %x, expected %x
\n
"
,
iterationNumber
,
CD_Stages
,
expectedResults
[
iterationNumber
].
ExpectedCalls
);
}
...
...
@@ -503,14 +501,11 @@ todo_wine
todo_wine
ok
(
!
r
,
"Adding the tool to the tooltip succeeded!
\n
"
);
if
(
0
)
/* crashes on NT4 */
{
toolinfoW
.
hwnd
=
NULL
;
toolinfoW
.
uId
=
0x1234ABCD
;
toolinfoW
.
lpszText
=
bufW
;
SendMessageW
(
hwnd
,
TTM_GETTEXTW
,
0
,
(
LPARAM
)
&
toolinfoW
);
ok
(
toolinfoW
.
lpszText
[
0
]
==
0
,
"lpszText should be an empty string
\n
"
);
}
toolinfoW
.
hwnd
=
NULL
;
toolinfoW
.
uId
=
0x1234ABCD
;
toolinfoW
.
lpszText
=
bufW
;
SendMessageW
(
hwnd
,
TTM_GETTEXTW
,
0
,
(
LPARAM
)
&
toolinfoW
);
ok
(
toolinfoW
.
lpszText
[
0
]
==
0
,
"lpszText should be an empty string
\n
"
);
/* text with embedded tabs */
toolinfoA
.
cbSize
=
sizeof
(
TTTOOLINFOA
);
...
...
@@ -571,9 +566,7 @@ static void test_ttm_gettoolinfo(void)
ti
.
lParam
=
0xaaaaaaaa
;
r
=
SendMessageA
(
hwnd
,
TTM_GETTOOLINFOA
,
0
,
(
LPARAM
)
&
ti
);
ok
(
r
,
"Getting tooltip info failed
\n
"
);
ok
(
0x1abe11ed
==
ti
.
lParam
||
broken
(
0x1abe11ed
!=
ti
.
lParam
),
/* comctl32 < 5.81 */
"Expected 0x1abe11ed, got %lx
\n
"
,
ti
.
lParam
);
ok
(
0x1abe11ed
==
ti
.
lParam
,
"Expected 0x1abe11ed, got %lx
\n
"
,
ti
.
lParam
);
tiW
.
cbSize
=
TTTOOLINFOW_V2_SIZE
;
tiW
.
hwnd
=
NULL
;
...
...
@@ -582,9 +575,7 @@ static void test_ttm_gettoolinfo(void)
tiW
.
lpszText
=
NULL
;
r
=
SendMessageA
(
hwnd
,
TTM_GETTOOLINFOW
,
0
,
(
LPARAM
)
&
tiW
);
ok
(
r
,
"Getting tooltip info failed
\n
"
);
ok
(
0x1abe11ed
==
tiW
.
lParam
||
broken
(
0x1abe11ed
!=
tiW
.
lParam
),
/* comctl32 < 5.81 */
"Expected 0x1abe11ed, got %lx
\n
"
,
tiW
.
lParam
);
ok
(
0x1abe11ed
==
tiW
.
lParam
,
"Expected 0x1abe11ed, got %lx
\n
"
,
tiW
.
lParam
);
ti
.
cbSize
=
TTTOOLINFOA_V2_SIZE
;
ti
.
uId
=
0x1234ABCD
;
...
...
@@ -595,9 +586,7 @@ static void test_ttm_gettoolinfo(void)
ti
.
lParam
=
0xdeadbeef
;
r
=
SendMessageA
(
hwnd
,
TTM_GETTOOLINFOA
,
0
,
(
LPARAM
)
&
ti
);
ok
(
r
,
"Getting tooltip info failed
\n
"
);
ok
(
0x55555555
==
ti
.
lParam
||
broken
(
0x55555555
!=
ti
.
lParam
),
/* comctl32 < 5.81 */
"Expected 0x55555555, got %lx
\n
"
,
ti
.
lParam
);
ok
(
0x55555555
==
ti
.
lParam
,
"Expected 0x55555555, got %lx
\n
"
,
ti
.
lParam
);
DestroyWindow
(
hwnd
);
...
...
@@ -854,9 +843,7 @@ static void test_longtextW(void)
toolinfoW
.
lpszText
=
bufW
;
SendMessageW
(
hwnd
,
TTM_GETTEXTW
,
0
,
(
LPARAM
)
&
toolinfoW
);
textlen
=
lstrlenW
(
toolinfoW
.
lpszText
);
ok
(
textlen
==
lenW
||
broken
(
textlen
==
0
&&
toolinfoW
.
lpszText
==
NULL
),
/* nt4, kb186177 */
"lpszText has %d chars
\n
"
,
textlen
);
ok
(
textlen
==
lenW
,
"lpszText has %d chars
\n
"
,
textlen
);
}
DestroyWindow
(
hwnd
);
...
...
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