[PATCH 12/12] user32/tests: Add optional messages to test sequences.

Rémi Bernon rbernon at codeweavers.com
Tue Nov 12 14:42:05 CST 2019


* To WmCreateDialogParamSeq_4, as seen on w2008s64 here:

  https://testbot.winehq.org/JobDetails.pl?Key=59881

* To WmShowPopupExtremeLocationSeq, as see on w864 here:

  https://testbot.winehq.org/JobDetails.pl?Key=59894

* To WmRestoreMinimizedSeq, as see on w1064v1809_ja here:

  https://testbot.winehq.org/JobDetails.pl?Key=59893#k113

* To WmMouseHoverSeq, as see on w1064v1809_zh_CN here:

  https://testbot.winehq.org/JobDetails.pl?Key=59894#k114

* To WmParentPaintNc, as see on w1064v1809_ar here:

  https://testbot.winehq.org/JobDetails.pl?Key=59906#k111

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 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 24314e98eb4..b473a128c8d 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 }
 };
 
@@ -12740,6 +12747,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 */
@@ -13771,6 +13779,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 },
@@ -17760,6 +17769,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 }
 };
-- 
2.24.0.rc2




More information about the wine-devel mailing list