Nikolay Sivov : comctl32/listview: Skip some header tests on version 4. 0 module.
Alexandre Julliard
julliard at winehq.org
Thu Sep 24 10:55:12 CDT 2009
Module: wine
Branch: master
Commit: 5e3c9925f8999a03e5e64a270495b73dd0b4acb6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5e3c9925f8999a03e5e64a270495b73dd0b4acb6
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Thu Sep 24 00:04:01 2009 +0400
comctl32/listview: Skip some header tests on version 4.0 module.
---
dlls/comctl32/tests/listview.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index cd79fd5..554c94c 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -1289,6 +1289,15 @@ static void test_create(void)
hList = CreateWindow("MyListView32", "Test", WS_VISIBLE, 0, 0, 100, 100, NULL, NULL, GetModuleHandle(NULL), 0);
ok((HIMAGELIST)SendMessage(hList, LVM_GETIMAGELIST, 0, 0) == test_create_imagelist, "Image list not obtained\n");
hHeader = (HWND)SendMessage(hList, LVM_GETHEADER, 0, 0);
+
+ if (!IsWindow(hHeader))
+ {
+ /* version 4.0 */
+ win_skip("LVM_GETHEADER not implemented. Skipping.\n");
+ DestroyWindow(hList);
+ return;
+ }
+
ok(IsWindow(hHeader) && IsWindowVisible(hHeader), "Listview not in report mode\n");
ok(hHeader == GetDlgItem(hList, 0), "Expected header as dialog item\n");
DestroyWindow(hList);
More information about the wine-cvs
mailing list