user32/tests: Add tests for minimizing MDI windows.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2017-05-31 13:44:16 -05:00 committed by Alexandre Julliard
parent 1984e86b44
commit 84a2459d56
1 changed files with 8 additions and 0 deletions

View File

@ -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);