Alexandre Julliard : user32/tests: Make the DC test window top-most. Ignore an extra WM_MOUSEMOVE.

Alexandre Julliard julliard at winehq.org
Fri Jan 23 10:06:53 CST 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Jan 23 13:13:54 2009 +0100

user32/tests: Make the DC test window top-most. Ignore an extra WM_MOUSEMOVE.

---

 dlls/user32/tests/win.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index 8ec8a61..d2e9bc6 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -2786,6 +2786,12 @@ static void test_mouse_input(HWND hwnd)
 
     ret = wait_for_message( &msg );
     ok(ret, "no message available\n");
+    if (msg.message == WM_MOUSEMOVE)  /* win2k has an extra WM_MOUSEMOVE here */
+    {
+        ret = wait_for_message( &msg );
+        ok(ret, "no message available\n");
+    }
+
     ok(msg.hwnd == popup && msg.message == WM_LBUTTONDOWN, "hwnd %p/%p message %04x\n",
        msg.hwnd, popup, msg.message);
 
@@ -3795,6 +3801,7 @@ static void test_csparentdc(void)
    ShowWindow(hwndMain, SW_SHOW);
    ShowWindow(hwnd1, SW_SHOW);
    ShowWindow(hwnd2, SW_SHOW);
+   SetWindowPos(hwndMain, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE);
    flush_events( TRUE );
 
    zero_parentdc_test(&test_answer);




More information about the wine-cvs mailing list