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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
datetime.c
dlls/comctl32/tests/datetime.c
+9
-1
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)
...
@@ -659,7 +659,7 @@ static void test_dtm_set_and_get_system_time(void)
static
void
test_wm_set_get_text
(
void
)
static
void
test_wm_set_get_text
(
void
)
{
{
static
const
CHAR
a_str
[]
=
"a"
;
static
const
CHAR
a_str
[]
=
"a"
;
char
buff
[
16
],
time
[
16
];
CHAR
buff
[
16
],
time
[
16
],
caltype
[
3
];
HWND
hWnd
;
HWND
hWnd
;
LRESULT
ret
;
LRESULT
ret
;
...
@@ -677,11 +677,19 @@ static void test_wm_set_get_text(void)
...
@@ -677,11 +677,19 @@ static void test_wm_set_get_text(void)
ok
(
ret
!=
0
,
"Expected non-zero return value
\n
"
);
ok
(
ret
!=
0
,
"Expected non-zero return value
\n
"
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
GetLocaleInfoA
(
LOCALE_USER_DEFAULT
,
LOCALE_ICALENDARTYPE
,
caltype
,
3
);
if
(
ret
==
0
)
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
));
ret
=
GetDateFormat
(
LOCALE_USER_DEFAULT
,
0
,
NULL
,
NULL
,
time
,
sizeof
(
time
));
if
(
ret
==
0
)
if
(
ret
==
0
)
skip
(
"GetDateFormat failed, returned %ld, error %d
\n
"
,
ret
,
GetLastError
());
skip
(
"GetDateFormat failed, returned %ld, error %d
\n
"
,
ret
,
GetLastError
());
else
else
ok
(
!
strcmp
(
buff
,
time
),
"Expected %s, got %s
\n
"
,
time
,
buff
);
ok
(
!
strcmp
(
buff
,
time
),
"Expected %s, got %s
\n
"
,
time
,
buff
);
}
DestroyWindow
(
hWnd
);
DestroyWindow
(
hWnd
);
}
}
...
...
dlls/comctl32/tests/monthcal.c
View file @
8fdb1bec
...
@@ -781,9 +781,20 @@ static void test_currdate(void)
...
@@ -781,9 +781,20 @@ static void test_currdate(void)
static
void
test_firstDay
(
void
)
static
void
test_firstDay
(
void
)
{
{
int
res
,
fday
,
i
,
prev
;
int
res
,
fday
,
i
,
prev
;
CHAR
b
[
128
];
CHAR
b
[
128
]
,
caltype
[
3
]
;
LCID
lcid
=
LOCALE_USER_DEFAULT
;
LCID
lcid
=
LOCALE_USER_DEFAULT
;
HWND
hwnd
;
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
);
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