[resend 2/2] user32/tests: check for unwanted WM_MOUSEACTIVATE for popup window.

Grazvydas Ignotas notasas at gmail.com
Thu Feb 2 17:00:26 CST 2017


Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>
---
 dlls/user32/tests/msg.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 45b5222..317a455 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -4712,6 +4712,7 @@ static void test_messages(void)
     LRESULT res;
     POINT pos;
     BOOL ret;
+    int i;
 
     flush_sequence();
 
@@ -4940,6 +4941,10 @@ static void test_messages(void)
     flush_sequence();
     SetWindowPos(hchild, 0,0,0,0,0, SWP_SHOWWINDOW|SWP_NOSIZE|SWP_NOMOVE);
     ok_sequence(WmShowVisiblePopupSeq_3, "SetWindowPos:show_visible_popup_3", FALSE);
+    Sleep(100);
+    while (PeekMessageA(&msg, 0, 0, 0, PM_REMOVE)) DispatchMessageA(&msg);
+    for (i = 0; i < sequence_cnt; i++) if (sequence[i].message == WM_MOUSEACTIVATE) break;
+    ok(i == sequence_cnt, "received unwanted WM_MOUSEACTIVATE\n");
     DestroyWindow(hchild);
 
     /* this time add WS_VISIBLE for CreateWindowEx, but this fact actually
-- 
2.7.4




More information about the wine-patches mailing list