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
8f9e1ae7
Commit
8f9e1ae7
authored
Dec 04, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Merge header items test with existing function.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e44d935c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
21 deletions
+13
-21
listview.c
dlls/comctl32/tests/listview.c
+13
-21
No files found.
dlls/comctl32/tests/listview.c
View file @
8f9e1ae7
...
...
@@ -1546,6 +1546,19 @@ static void test_columns(void)
"get subitem text after column added"
,
FALSE
);
DestroyWindow
(
hwnd
);
/* Columns are not created right away. */
hwnd
=
create_listview_control
(
LVS_REPORT
);
ok
(
hwnd
!=
NULL
,
"Failed to create a listview window.
\n
"
);
insert_item
(
hwnd
,
0
);
header
=
(
HWND
)
SendMessageA
(
hwnd
,
LVM_GETHEADER
,
0
,
0
);
ok
(
IsWindow
(
header
),
"Expected header handle.
\n
"
);
rc
=
SendMessageA
(
header
,
HDM_GETITEMCOUNT
,
0
,
0
);
ok
(
!
rc
,
"Unexpected column count.
\n
"
);
DestroyWindow
(
hwnd
);
}
/* test setting imagelist between WM_NCCREATE and WM_CREATE */
...
...
@@ -3939,25 +3952,6 @@ static void test_getitemposition(void)
DestroyWindow
(
hwnd
);
}
static
void
test_columnscreation
(
void
)
{
HWND
hwnd
,
header
;
DWORD
r
;
hwnd
=
create_listview_control
(
LVS_REPORT
);
ok
(
hwnd
!=
NULL
,
"failed to create a listview window
\n
"
);
insert_item
(
hwnd
,
0
);
/* headers columns aren't created automatically */
header
=
(
HWND
)
SendMessageA
(
hwnd
,
LVM_GETHEADER
,
0
,
0
);
ok
(
IsWindow
(
header
),
"Expected header handle
\n
"
);
r
=
SendMessageA
(
header
,
HDM_GETITEMCOUNT
,
0
,
0
);
expect
(
0
,
r
);
DestroyWindow
(
hwnd
);
}
static
void
test_getitemrect
(
void
)
{
HWND
hwnd
;
...
...
@@ -6577,7 +6571,6 @@ START_TEST(listview)
test_hittest
();
test_getviewrect
();
test_getitemposition
();
test_columnscreation
();
test_editbox
();
test_notifyformat
();
test_indentation
();
...
...
@@ -6632,7 +6625,6 @@ START_TEST(listview)
test_ownerdata
();
test_norecompute
();
test_nosortheader
();
test_columnscreation
();
test_indentation
();
test_finditem
();
test_hover
();
...
...
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