Rémi Bernon : user32/tests: Add optional messages to test sequences.

Alexandre Julliard julliard at winehq.org
Wed Nov 13 16:01:11 CST 2019


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

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Tue Nov 12 21:42:05 2019 +0100

user32/tests: Add optional messages to test sequences.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/msg.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index dc5b0ff3ed..c0ba5834cf 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -962,6 +962,12 @@ static const struct message WmShowPopupExtremeLocationSeq[] = {
     { HCBT_ACTIVATE, hook },
     { WM_WINDOWPOSCHANGING, sent|optional },
     { WM_QUERYNEWPALETTE, sent|optional },
+
+    /* occasionally received on test machines */
+    { WM_NCPAINT, sent|optional },
+    { WM_ERASEBKGND, sent|optional },
+    { WM_WINDOWPOSCHANGED, sent|optional },
+
     { WM_ACTIVATEAPP, sent },
     { WM_NCACTIVATE, sent },
     { WM_ACTIVATE, sent },
@@ -7879,6 +7885,7 @@ static const struct message WmParentPaintNc[] = {
     { WM_NCPAINT, sent|beginpaint },
     { WM_GETTEXT, sent|beginpaint|defwinproc|optional },
     { WM_ERASEBKGND, sent|beginpaint|optional },
+    { WM_GETMINMAXINFO, sent|optional },
     { 0 }
 };
 
@@ -12731,6 +12738,7 @@ static void test_notify_message(void)
 }
 
 static const struct message WmMouseHoverSeq[] = {
+    { WM_GETMINMAXINFO, sent|optional }, /* sometimes seen on w1064v1809 */
     { WM_MOUSEACTIVATE, sent|optional },  /* we can get those when moving the mouse in focus-follow-mouse mode under X11 */
     { WM_MOUSEACTIVATE, sent|optional },
     { WM_TIMER, sent|optional }, /* XP sends it */
@@ -13762,6 +13770,7 @@ static const struct message WmCreateDialogParamSeq_4[] = {
     { WM_QUERYNEWPALETTE, sent|parent|optional }, /* TODO: this message should not be sent */
     { WM_WINDOWPOSCHANGING, sent|parent|wparam|optional, SWP_NOSIZE|SWP_NOMOVE },
     { WM_WINDOWPOSCHANGING, sent|parent|wparam|optional, SWP_NOSIZE|SWP_NOMOVE },
+    { WM_WINDOWPOSCHANGED, sent|parent|wparam|optional, SWP_NOREDRAW|SWP_NOSIZE|SWP_NOMOVE|SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE },
     { WM_ACTIVATEAPP, sent|parent|wparam, 1 },
     { WM_NCACTIVATE, sent|parent },
     { WM_ACTIVATE, sent|parent|wparam, 1 },
@@ -17751,6 +17760,10 @@ static const struct message WmRestoreMinimizedSeq[] =
     { WM_SYSKEYUP, sent|optional },
     { HCBT_KEYSKIPPED, hook|optional },
     { WM_KEYUP, sent|optional },
+    { HCBT_KEYSKIPPED, hook|optional },
+    { WM_SYSKEYUP, sent|optional },
+    { HCBT_KEYSKIPPED, hook|optional },
+    { WM_KEYUP, sent|optional },
     { WM_PAINT, sent| optional },
     { 0 }
 };




More information about the wine-cvs mailing list