[PATCH] user32/tests: Add tests for minimizing MDI windows.

Zebediah Figura z.figura12 at gmail.com
Wed May 31 13:44:16 CDT 2017


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/user32/tests/win.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index e146e96d69..460ae93ecc 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -1841,6 +1841,14 @@ static void test_MDI_child_stack(HWND mdi_client)
         "Broken MDI child stack:\nexpected: %p->%p->%p->%p, but got: %p->%p->%p->%p\n",
             child_4, child_2, child_1, child_3, stack[0], stack[1], stack[2], stack[3]);
 
+    trace("Minimize child %p\n", child_4);
+    ShowWindow(child_4, SW_MINIMIZE);
+
+    stack[0] = (HWND)SendMessageA(mdi_client, WM_MDIGETACTIVE, 0, 0);
+    stack[1] = GetWindow(stack[0], GW_HWNDNEXT);
+    todo_wine ok(stack[0] == child_4, "Expected %p, got %p\n", child_4, stack[0]);
+    todo_wine ok(stack[1] == NULL, "Expected NULL, got %p\n", stack[1]);
+
     DestroyWindow(child_1);
     DestroyWindow(child_2);
     DestroyWindow(child_3);
-- 
2.13.0




More information about the wine-patches mailing list