From e4e55ed8b4e2ff57a62927fb91f4d4244a0a3b39 Mon Sep 17 00:00:00 2001 From: Ilya Shpigor Date: Mon, 30 Nov 2009 15:24:27 +0300 Subject: [PATCH] comctl32: Test the WM_GETTEXT processing of datetime control. --- dlls/comctl32/tests/datetime.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/tests/datetime.c b/dlls/comctl32/tests/datetime.c index 8a3ad031348..9218e07140e 100644 --- a/dlls/comctl32/tests/datetime.c +++ b/dlls/comctl32/tests/datetime.c @@ -659,7 +659,7 @@ static void test_dtm_set_and_get_system_time(void) static void test_wm_set_get_text(void) { static const CHAR a_str[] = "a"; - char buff[10]; + char buff[16], time[16]; HWND hWnd; LRESULT ret; @@ -674,6 +674,10 @@ static void test_wm_set_get_text(void) ret = SendMessage(hWnd, WM_GETTEXT, sizeof(buff), (LPARAM)buff); ok(strcmp(buff, a_str) != 0, "Expected text not to change, got %s\n", buff); + GetDateFormat(LOCALE_USER_DEFAULT, 0, NULL, NULL, time, sizeof(time)); + todo_wine + ok(!strcmp(buff, time), "Expected %s, got %s\n", time, buff); + DestroyWindow(hWnd); }