comctl32: Test the WM_GETTEXT processing of datetime control.
This commit is contained in:
parent
e4faa12900
commit
e4e55ed8b4
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue