[PATCH 16/27] user32/tests: Fix test_quit_message() message sequences to support WinEvents.
Connor McAdams
cmcadams at codeweavers.com
Tue Aug 17 11:11:31 CDT 2021
Signed-off-by: Connor McAdams <cmcadams at codeweavers.com>
---
dlls/user32/tests/msg.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index eebc9a112ea..a256a568abe 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -12879,11 +12879,14 @@ static INT_PTR CALLBACK wm_quit_dlg_proc(HWND hwnd, UINT message, WPARAM wp, LPA
static const struct message WmQuitDialogSeq[] = {
{ HCBT_CREATEWND, hook },
+ { EVENT_OBJECT_CREATE, winevent_hook|wparam|lparam|optional, 0, 0 },
{ WM_SETFONT, sent },
{ WM_INITDIALOG, sent },
{ WM_CHANGEUISTATE, sent|optional },
+ { EVENT_SYSTEM_DIALOGEND, winevent_hook|wparam|lparam|optional, 0, 0 },
{ HCBT_DESTROYWND, hook },
{ 0x0090, sent|optional }, /* Vista */
+ { EVENT_OBJECT_DESTROY, winevent_hook|wparam|lparam|optional, 0, 0 },
{ WM_DESTROY, sent },
{ WM_NCDESTROY, sent },
{ 0 }
@@ -18492,6 +18495,8 @@ START_TEST(msg)
test_DispatchMessage();
test_SendMessageTimeout();
test_edit_messages();
+ test_quit_message();
+ test_notify_message();
/* Fix message sequences before removing 4 lines below */
if (pUnhookWinEvent && hEvent_hook)
@@ -18502,8 +18507,6 @@ START_TEST(msg)
}
hEvent_hook = 0;
- test_quit_message();
- test_notify_message();
test_SetActiveWindow();
test_restore_messages();
test_invalid_window();
--
2.25.1
More information about the wine-devel
mailing list