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
a7633d78
Commit
a7633d78
authored
Oct 03, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Fix some test failures (MCM_GETSELRANGE).
parent
0a6c2c86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
11 deletions
+23
-11
monthcal.c
dlls/comctl32/tests/monthcal.c
+23
-11
No files found.
dlls/comctl32/tests/monthcal.c
View file @
a7633d78
...
...
@@ -1484,7 +1484,7 @@ static void test_monthcal_getselrange(void)
{
HWND
hwnd
;
SYSTEMTIME
st
,
range
[
2
];
BOOL
ret
;
BOOL
ret
,
old_comctl32
=
FALSE
;
hwnd
=
create_monthcal_control
(
MCS_MULTISELECT
);
...
...
@@ -1492,25 +1492,37 @@ static void test_monthcal_getselrange(void)
ret
=
SendMessage
(
hwnd
,
MCM_GETTODAY
,
0
,
(
LPARAM
)
&
st
);
expect
(
TRUE
,
ret
);
memset
(
range
,
0xcc
,
sizeof
(
range
));
ret
=
SendMessage
(
hwnd
,
MCM_GETSELRANGE
,
0
,
(
LPARAM
)
range
);
expect
(
TRUE
,
ret
);
expect
(
st
.
wYear
,
range
[
0
].
wYear
);
expect
(
st
.
wMonth
,
range
[
0
].
wMonth
);
expect
(
st
.
wDay
,
range
[
0
].
wDay
);
expect
(
st
.
wDayOfWeek
,
range
[
0
].
wDayOfWeek
);
expect
(
st
.
wHour
,
range
[
0
].
wHour
);
expect
(
st
.
wMinute
,
range
[
0
].
wMinute
);
expect
(
st
.
wSecond
,
range
[
0
].
wSecond
);
expect
(
st
.
wMilliseconds
,
range
[
0
].
wMilliseconds
);
if
(
range
[
0
].
wDayOfWeek
==
0
)
{
win_skip
(
"comctl32 <= 4.70 doesn't set some values
\n
"
);
old_comctl32
=
TRUE
;
}
else
{
expect
(
st
.
wDayOfWeek
,
range
[
0
].
wDayOfWeek
);
expect
(
st
.
wHour
,
range
[
0
].
wHour
);
expect
(
st
.
wMinute
,
range
[
0
].
wMinute
);
expect
(
st
.
wSecond
,
range
[
0
].
wSecond
);
expect
(
st
.
wMilliseconds
,
range
[
0
].
wMilliseconds
);
}
expect
(
st
.
wYear
,
range
[
1
].
wYear
);
expect
(
st
.
wMonth
,
range
[
1
].
wMonth
);
expect
(
st
.
wDay
,
range
[
1
].
wDay
);
expect
(
st
.
wDayOfWeek
,
range
[
1
].
wDayOfWeek
);
expect
(
st
.
wHour
,
range
[
1
].
wHour
);
expect
(
st
.
wMinute
,
range
[
1
].
wMinute
);
expect
(
st
.
wSecond
,
range
[
1
].
wSecond
);
expect
(
st
.
wMilliseconds
,
range
[
1
].
wMilliseconds
);
if
(
!
old_comctl32
)
{
expect
(
st
.
wDayOfWeek
,
range
[
1
].
wDayOfWeek
);
expect
(
st
.
wHour
,
range
[
1
].
wHour
);
expect
(
st
.
wMinute
,
range
[
1
].
wMinute
);
expect
(
st
.
wSecond
,
range
[
1
].
wSecond
);
expect
(
st
.
wMilliseconds
,
range
[
1
].
wMilliseconds
);
}
DestroyWindow
(
hwnd
);
}
...
...
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