Nikolay Sivov : comctl32/tests: Fix a test that depends on control size.
Alexandre Julliard
julliard at winehq.org
Mon Oct 3 17:21:24 CDT 2011
Module: wine
Branch: master
Commit: ce6819d93da8681f5696c3038b67adc434fa6a01
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ce6819d93da8681f5696c3038b67adc434fa6a01
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Oct 3 09:31:18 2011 -0500
comctl32/tests: Fix a test that depends on control size.
---
dlls/comctl32/tests/monthcal.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/tests/monthcal.c b/dlls/comctl32/tests/monthcal.c
index 9775095..fd6b910 100644
--- a/dlls/comctl32/tests/monthcal.c
+++ b/dlls/comctl32/tests/monthcal.c
@@ -1865,10 +1865,17 @@ static void test_daystate(void)
MONTHDAYSTATE state[4];
DWORD ret, style;
HWND hwnd;
+ RECT r;
/* without MCS_DAYSTATE */
hwnd = create_monthcal_control(0);
+ ret = SendMessage(hwnd, MCM_GETMINREQRECT, 0, (LPARAM)&r);
+ expect(TRUE, ret);
+
+ /* resize control to display two Calendars */
+ MoveWindow(hwnd, 0, 0, r.right, (5/2)*r.bottom, FALSE);
+
ret = SendMessageA(hwnd, MCM_GETMONTHRANGE, GMR_DAYSTATE, 0);
expect(4, ret);
More information about the wine-cvs
mailing list