Nikolay Sivov : comctl32/listview: Test for indentation callback.
Alexandre Julliard
julliard at winehq.org
Wed Jun 10 10:16:57 CDT 2009
Module: wine
Branch: master
Commit: 5e5a58b138d501ffac962aedb811e8bc46c7b387
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5e5a58b138d501ffac962aedb811e8bc46c7b387
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Tue Jun 9 23:16:21 2009 +0400
comctl32/listview: Test for indentation callback.
---
dlls/comctl32/tests/listview.c | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index ca72fa5..e7cbe03 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -3280,6 +3280,35 @@ static void test_notifyformat(void)
DestroyWindow(hwndparentW);
}
+static void test_indentation(void)
+{
+ HWND hwnd;
+ LVITEMA item;
+ DWORD r;
+
+ hwnd = create_listview_control(0);
+ ok(hwnd != NULL, "failed to create a listview window\n");
+
+ memset(&item, 0, sizeof(item));
+ item.mask = LVIF_INDENT;
+ item.iItem = 0;
+ item.iIndent = I_INDENTCALLBACK;
+ r = SendMessage(hwnd, LVM_INSERTITEMA, 0, (LPARAM)&item);
+ expect(0, r);
+
+ flush_sequences(sequences, NUM_MSG_SEQUENCES);
+
+ item.iItem = 0;
+ item.mask = LVIF_INDENT;
+ r = SendMessage(hwnd, LVM_GETITEM, 0, (LPARAM)&item);
+ expect(TRUE, r);
+
+ ok_sequence(sequences, PARENT_SEQ_INDEX, single_getdispinfo_parent_seq,
+ "get indent dispinfo", TRUE);
+
+ DestroyWindow(hwnd);
+}
+
START_TEST(listview)
{
HMODULE hComctl32;
@@ -3330,6 +3359,7 @@ START_TEST(listview)
test_columnscreation();
test_editbox();
test_notifyformat();
+ test_indentation();
DestroyWindow(hwndparent);
}
More information about the wine-cvs
mailing list