Dylan Smith : user32/tests: Minimized windows shouldn't be resizable.
Alexandre Julliard
julliard at winehq.org
Thu Jul 22 12:09:29 CDT 2010
Module: wine
Branch: master
Commit: f35dabad99cf8fbaec458a67c96ea1aededd4651
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f35dabad99cf8fbaec458a67c96ea1aededd4651
Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date: Tue Jul 20 17:53:15 2010 -0400
user32/tests: Minimized windows shouldn't be resizable.
---
dlls/user32/tests/win.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index eadad3a..522a0f5 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -4872,7 +4872,7 @@ static void test_ShowWindow(void)
{
HWND hwnd;
DWORD style;
- RECT rcMain, rc;
+ RECT rcMain, rc, rcMinimized;
LPARAM ret;
SetRect(&rcMain, 120, 120, 210, 210);
@@ -4914,8 +4914,16 @@ static void test_ShowWindow(void)
ok(style & WS_VISIBLE, "window should be visible\n");
ok(style & WS_MINIMIZE, "window should be minimized\n");
ok(!(style & WS_MAXIMIZE), "window should not be maximized\n");
+ GetWindowRect(hwnd, &rcMinimized);
+ ok(!EqualRect(&rcMain, &rcMinimized), "rects shouldn't match\n");
+ /* shouldn't be able to resize minized windows */
+ ret = SetWindowPos(hwnd, 0, 0, 0,
+ (rcMinimized.right - rcMinimized.left) * 2,
+ (rcMinimized.bottom - rcMinimized.top) * 2,
+ SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOZORDER);
+ ok(ret, "not expected ret: %lu\n", ret);
GetWindowRect(hwnd, &rc);
- ok(!EqualRect(&rcMain, &rc), "rects shouldn't match\n");
+ todo_wine ok(EqualRect(&rc, &rcMinimized), "rects should match\n");
ShowWindow(hwnd, SW_RESTORE);
ok(ret, "not expected ret: %lu\n", ret);
More information about the wine-cvs
mailing list