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
2286a321
Commit
2286a321
authored
Jun 20, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Basic LVM_MAPINDEXTOID tests.
parent
76cb9c0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
listview.c
dlls/comctl32/tests/listview.c
+28
-0
No files found.
dlls/comctl32/tests/listview.c
View file @
2286a321
...
...
@@ -3583,6 +3583,33 @@ static void test_canceleditlabel(void)
DestroyWindow
(
hwnd
);
}
static
void
test_mapidindex
(
void
)
{
HWND
hwnd
;
DWORD
ret
;
hwnd
=
create_listview_control
(
0
);
ok
(
hwnd
!=
NULL
,
"failed to create a listview window
\n
"
);
insert_item
(
hwnd
,
0
);
insert_item
(
hwnd
,
1
);
ret
=
SendMessage
(
hwnd
,
LVM_MAPINDEXTOID
,
0
,
0
);
expect
(
0
,
ret
);
ret
=
SendMessage
(
hwnd
,
LVM_MAPINDEXTOID
,
1
,
0
);
todo_wine
expect
(
1
,
ret
);
/* remove 0 indexed item, id retained */
SendMessage
(
hwnd
,
LVM_DELETEITEM
,
0
,
0
);
ret
=
SendMessage
(
hwnd
,
LVM_MAPINDEXTOID
,
0
,
0
);
todo_wine
expect
(
1
,
ret
);
/* new id starts from previous value */
insert_item
(
hwnd
,
1
);
ret
=
SendMessage
(
hwnd
,
LVM_MAPINDEXTOID
,
1
,
0
);
todo_wine
expect
(
2
,
ret
);
DestroyWindow
(
hwnd
);
}
START_TEST
(
listview
)
{
HMODULE
hComctl32
;
...
...
@@ -3648,6 +3675,7 @@ START_TEST(listview)
/* comctl32 version 6 tests start here */
test_get_set_view
();
test_canceleditlabel
();
test_mapidindex
();
unload_v6_module
(
ctx_cookie
);
...
...
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