Zebediah Figura : user32/tests: Add tests for minimizing MDI windows.

Alexandre Julliard julliard at winehq.org
Fri Jun 2 17:03:27 CDT 2017


Module: wine
Branch: master
Commit: 84a2459d56b64c47f5753090e37e5163c8cbf807
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=84a2459d56b64c47f5753090e37e5163c8cbf807

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Wed May 31 13:44:16 2017 -0500

user32/tests: Add tests for minimizing MDI windows.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 e146e96..460ae93 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);




More information about the wine-cvs mailing list