[2/2] comctl32/listview: Skip LVS_EX_CHECKBOXES tests when this style is unsupported
Nikolay Sivov
bunglehead at gmail.com
Tue Sep 22 18:03:54 CDT 2009
Changelog:
- Skip LVS_EX_CHECKBOXES tests when this style is unsupported
>From f4de789efb8afc855e2ab0f8fe2ab07d15957806 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Wed, 23 Sep 2009 01:56:02 +0400
Subject: Skip LVS_EX_CHECKBOXES tests when this style is unsupported
---
dlls/comctl32/tests/listview.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index 7353958..199e00f 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -837,7 +837,12 @@ static void test_checkboxes(void)
item.mask = LVIF_STATE;
item.stateMask = 0xffff;
r = SendMessage(hwnd, LVM_GETITEMA, 0, (LPARAM) &item);
- ok(item.state == 0x1ccc, "state %x\n", item.state);
+ if (item.state != 0x1ccc)
+ {
+ win_skip("LVS_EX_CHECKBOXES style is unavailable. Skipping.\n");
+ DestroyWindow(hwnd);
+ return;
+ }
/* Now add an item without specifying a state and check that its state goes to 0x1000 */
item.iItem = 2;
--
1.5.6.5
More information about the wine-patches
mailing list