Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8fdb1bec
Commit
8fdb1bec
authored
Aug 19, 2010
by
Austin Lund
Committed by
Alexandre Julliard
Aug 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: DateTimePicker and MonthCalendar controls only support Gregorian calendar.
parent
a4435e3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
6 deletions
+25
-6
datetime.c
dlls/comctl32/tests/datetime.c
+13
-5
monthcal.c
dlls/comctl32/tests/monthcal.c
+12
-1
No files found.
dlls/comctl32/tests/datetime.c
View file @
8fdb1bec
...
...
@@ -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
[
16
],
time
[
16
];
CHAR
buff
[
16
],
time
[
16
],
caltype
[
3
];
HWND
hWnd
;
LRESULT
ret
;
...
...
@@ -677,11 +677,19 @@ static void test_wm_set_get_text(void)
ok
(
ret
!=
0
,
"Expected non-zero return value
\n
"
);
SetLastError
(
0xdeadbeef
);
ret
=
Get
DateFormat
(
LOCALE_USER_DEFAULT
,
0
,
NULL
,
NULL
,
time
,
sizeof
(
time
)
);
ret
=
Get
LocaleInfoA
(
LOCALE_USER_DEFAULT
,
LOCALE_ICALENDARTYPE
,
caltype
,
3
);
if
(
ret
==
0
)
skip
(
"GetDateFormat failed, returned %ld, error %d
\n
"
,
ret
,
GetLastError
());
else
ok
(
!
strcmp
(
buff
,
time
),
"Expected %s, got %s
\n
"
,
time
,
buff
);
skip
(
"Must know local calendar type (%x)
\n
"
,
GetLastError
());
else
if
(
atoi
(
caltype
)
!=
CAL_GREGORIAN
)
skip
(
"DateTimePicker Control only supports Gregorian calendar (type: %s)
\n
"
,
caltype
);
else
{
SetLastError
(
0xdeadbeef
);
ret
=
GetDateFormat
(
LOCALE_USER_DEFAULT
,
0
,
NULL
,
NULL
,
time
,
sizeof
(
time
));
if
(
ret
==
0
)
skip
(
"GetDateFormat failed, returned %ld, error %d
\n
"
,
ret
,
GetLastError
());
else
ok
(
!
strcmp
(
buff
,
time
),
"Expected %s, got %s
\n
"
,
time
,
buff
);
}
DestroyWindow
(
hWnd
);
}
...
...
dlls/comctl32/tests/monthcal.c
View file @
8fdb1bec
...
...
@@ -781,9 +781,20 @@ static void test_currdate(void)
static
void
test_firstDay
(
void
)
{
int
res
,
fday
,
i
,
prev
;
CHAR
b
[
128
];
CHAR
b
[
128
]
,
caltype
[
3
]
;
LCID
lcid
=
LOCALE_USER_DEFAULT
;
HWND
hwnd
;
LRESULT
ret
;
SetLastError
(
0xdeadbeef
);
ret
=
GetLocaleInfoA
(
lcid
,
LOCALE_ICALENDARTYPE
,
caltype
,
3
);
if
(
ret
==
0
)
{
skip
(
"Must know local calendar type (%x)
\n
"
,
GetLastError
());
return
;
}
else
if
(
atoi
(
caltype
)
!=
CAL_GREGORIAN
)
{
skip
(
"MonthCalendar Control only supports Gregorian calendar (type: %s)
\n
"
,
caltype
);
return
;
}
hwnd
=
create_monthcal_control
(
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment