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
227b1fe2
Commit
227b1fe2
authored
Oct 05, 2010
by
Austin Lund
Committed by
Alexandre Julliard
Oct 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Add tests for negative subitems independent of local settings.
parent
6a3ca3ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
listview.c
dlls/comctl32/tests/listview.c
+18
-2
No files found.
dlls/comctl32/tests/listview.c
View file @
227b1fe2
...
...
@@ -2992,7 +2992,8 @@ static void test_hittest(void)
LVITEMA
item
;
static
CHAR
text
[]
=
"1234567890ABCDEFGHIJKLMNOPQRST"
;
POINT
pos
;
INT
x
,
y
;
INT
x
,
y
,
i
;
WORD
horiz
,
vert
;
HIMAGELIST
himl
,
himl2
;
HBITMAP
hbmp
;
...
...
@@ -3020,6 +3021,11 @@ static void test_hittest(void)
r
=
SendMessage
(
hwnd
,
LVM_GETITEMRECT
,
0
,
(
LPARAM
)
&
bounds
);
ok
(
bounds
.
bottom
-
bounds
.
top
>
0
,
"Expected non zero item height
\n
"
);
ok
(
bounds
.
right
-
bounds
.
left
>
0
,
"Expected non zero item width
\n
"
);
r
=
SendMessage
(
hwnd
,
LVM_GETITEMSPACING
,
TRUE
,
0
);
horiz
=
LOWORD
(
r
);
vert
=
HIWORD
(
r
);
ok
(
bounds
.
bottom
-
bounds
.
top
==
vert
,
"Horizontal spacing inconsistent (%d != %d)
\n
"
,
bounds
.
bottom
-
bounds
.
top
,
vert
);
r
=
SendMessage
(
hwnd
,
LVM_GETITEMPOSITION
,
0
,
(
LPARAM
)
&
pos
);
expect
(
TRUE
,
r
);
...
...
@@ -3052,8 +3058,18 @@ static void test_hittest(void)
test_lvm_subitemhittest
(
hwnd
,
x
,
y
,
-
1
,
-
1
,
LVHT_NOWHERE
,
FALSE
,
FALSE
,
FALSE
);
/* subitem returned with -1 item too */
x
=
pos
.
x
+
150
;
y
=
-
1
;
y
=
bounds
.
top
-
vert
;
test_lvm_subitemhittest
(
hwnd
,
x
,
y
,
-
1
,
1
,
LVHT_NOWHERE
,
FALSE
,
FALSE
,
FALSE
);
test_lvm_subitemhittest
(
hwnd
,
x
,
y
-
vert
+
1
,
-
1
,
1
,
LVHT_NOWHERE
,
FALSE
,
FALSE
,
FALSE
);
/* return values appear to underflow with negative indices */
i
=
-
2
;
y
=
y
-
vert
;
while
(
i
>
-
10
)
{
test_lvm_subitemhittest
(
hwnd
,
x
,
y
,
i
,
1
,
LVHT_ONITEMLABEL
,
TRUE
,
FALSE
,
TRUE
);
test_lvm_subitemhittest
(
hwnd
,
x
,
y
-
vert
+
1
,
i
,
1
,
LVHT_ONITEMLABEL
,
TRUE
,
FALSE
,
TRUE
);
y
=
y
-
vert
;
i
--
;
}
/* parent client area is 100x100 by default */
MoveWindow
(
hwnd
,
0
,
0
,
300
,
100
,
FALSE
);
x
=
pos
.
x
+
150
;
/* outside column */
...
...
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