Nikolay Sivov : comctl32/listview: Fix some test failures on comctl32 4.7x.

Alexandre Julliard julliard at winehq.org
Mon Aug 3 11:15:00 CDT 2009


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

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Mon Aug  3 01:44:31 2009 +0400

comctl32/listview: Fix some test failures on comctl32 4.7x.

---

 dlls/comctl32/tests/listview.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index 888b323..4ac14d5 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -267,14 +267,18 @@ static const struct message getitemposition_seq2[] = {
 
 static const struct message editbox_create_pos[] = {
     /* sequence sent after LVN_BEGINLABELEDIT */
+    /* next two are 4.7x specific */
     { WM_WINDOWPOSCHANGING, sent },
+    { WM_WINDOWPOSCHANGED, sent|optional },
+
+    { WM_WINDOWPOSCHANGING, sent|optional },
     { WM_NCCALCSIZE, sent },
     { WM_WINDOWPOSCHANGED, sent },
     { WM_MOVE, sent|defwinproc },
     { WM_SIZE, sent|defwinproc },
-    /* the rest is todo */
-    { WM_WINDOWPOSCHANGING, sent },
-    { WM_WINDOWPOSCHANGED, sent },
+    /* the rest is todo, skipped in 4.7x */
+    { WM_WINDOWPOSCHANGING, sent|optional },
+    { WM_WINDOWPOSCHANGED, sent|optional },
     { 0 }
 };
 
@@ -3440,7 +3444,7 @@ static void test_editbox(void)
     ok(IsWindow(hwndedit), "Expected Edit window to be created\n");
     /* testing only sizing messages */
     ok_sequence(sequences, EDITBOX_SEQ_INDEX, editbox_create_pos,
-                "edit box create - sizing", TRUE);
+                "edit box create - sizing", FALSE);
 
     DestroyWindow(hwnd);
 }




More information about the wine-cvs mailing list