Paul Vriens : comctl32/tests: Fix some test failures on older comctl32.

Alexandre Julliard julliard at winehq.org
Tue Dec 15 09:40:16 CST 2009


Module: wine
Branch: master
Commit: fb1fada93a47cea9b52cac968ff87d3365539c4e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fb1fada93a47cea9b52cac968ff87d3365539c4e

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Tue Dec 15 08:59:30 2009 +0100

comctl32/tests: Fix some test failures on older comctl32.

---

 dlls/comctl32/tests/treeview.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c
index f99da88..e763feb 100644
--- a/dlls/comctl32/tests/treeview.c
+++ b/dlls/comctl32/tests/treeview.c
@@ -999,7 +999,10 @@ static void test_get_linecolor(void)
 
     /* newly created control has default color */
     clr = (COLORREF)SendMessage(hTree, TVM_GETLINECOLOR, 0, 0);
-    expect(CLR_DEFAULT, clr);
+    if (clr == 0)
+        win_skip("TVM_GETLINECOLOR is not supported on comctl32 < 5.80\n");
+    else
+        expect(CLR_DEFAULT, clr);
 
     DestroyWindow(hTree);
 }
@@ -1013,7 +1016,10 @@ static void test_get_insertmarkcolor(void)
 
     /* newly created control has default color */
     clr = (COLORREF)SendMessage(hTree, TVM_GETINSERTMARKCOLOR, 0, 0);
-    expect(CLR_DEFAULT, clr);
+    if (clr == 0)
+        win_skip("TVM_GETINSERTMARKCOLOR is not supported on comctl32 < 5.80\n");
+    else
+        expect(CLR_DEFAULT, clr);
 
     DestroyWindow(hTree);
 }




More information about the wine-cvs mailing list