Module: wine Branch: master Commit: e4e55ed8b4e2ff57a62927fb91f4d4244a0a3b39 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e4e55ed8b4e2ff57a62927fb91...
Author: Ilya Shpigor shpigor@etersoft.ru Date: Mon Nov 30 15:24:27 2009 +0300
comctl32: Test the WM_GETTEXT processing of datetime control.
---
dlls/comctl32/tests/datetime.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/tests/datetime.c b/dlls/comctl32/tests/datetime.c index 8a3ad03..9218e07 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); }