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
f88d9ab1
Commit
f88d9ab1
authored
Jul 08, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jul 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Fix test failures with comctl32 <= 5.80.
parent
6211643b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
datetime.c
dlls/comctl32/tests/datetime.c
+17
-9
No files found.
dlls/comctl32/tests/datetime.c
View file @
f88d9ab1
...
...
@@ -423,10 +423,13 @@ static void test_dtm_set_range_swap_min_max(HWND hWndDateTime)
r
=
SendMessage
(
hWndDateTime
,
DTM_GETRANGE
,
0
,
(
LPARAM
)
getSt
);
ok
(
r
==
(
GDTR_MIN
|
GDTR_MAX
),
"Expected %x, not %x(GDTR_MIN) or %x(GDTR_MAX), got %lx
\n
"
,
(
GDTR_MIN
|
GDTR_MAX
),
GDTR_MIN
,
GDTR_MAX
,
r
);
todo_wine
{
expect_systime
(
&
st
[
0
],
&
getSt
[
0
]);
}
todo_wine
{
expect_systime
(
&
st
[
1
],
&
getSt
[
1
]);
ok
(
compare_systime
(
&
st
[
0
],
&
getSt
[
0
])
==
1
||
broken
(
compare_systime
(
&
st
[
0
],
&
getSt
[
1
])
==
1
),
/* comctl32 version <= 5.80 */
"ST1 != ST2
\n
"
);
ok
(
compare_systime
(
&
st
[
1
],
&
getSt
[
1
])
==
1
||
broken
(
compare_systime
(
&
st
[
1
],
&
getSt
[
0
])
==
1
),
/* comctl32 version <= 5.80 */
"ST1 != ST2
\n
"
);
}
fill_systime_struct
(
&
st
[
0
],
1980
,
1
,
3
,
23
,
14
,
34
,
37
,
465
);
...
...
@@ -439,7 +442,9 @@ static void test_dtm_set_range_swap_min_max(HWND hWndDateTime)
and doing DTM_SETSYSTEMTIME */
expect_systime_date
(
&
st
[
0
],
&
getSt
[
0
]);
todo_wine
{
expect_systime_time
(
&
origSt
,
&
getSt
[
0
]);
ok
(
compare_systime_time
(
&
origSt
,
&
getSt
[
0
])
==
1
||
broken
(
compare_systime_time
(
&
st
[
0
],
&
getSt
[
0
])
==
1
),
/* comctl32 version <= 5.80 */
"ST1.time != ST2.time
\n
"
);
}
/* set st[0] to value higher than minimum */
...
...
@@ -455,10 +460,13 @@ static void test_dtm_set_range_swap_min_max(HWND hWndDateTime)
r
=
SendMessage
(
hWndDateTime
,
DTM_GETRANGE
,
0
,
(
LPARAM
)
getSt
);
ok
(
r
==
(
GDTR_MIN
|
GDTR_MAX
),
"Expected %x, not %x(GDTR_MIN) or %x(GDTR_MAX), got %lx
\n
"
,
(
GDTR_MIN
|
GDTR_MAX
),
GDTR_MIN
,
GDTR_MAX
,
r
);
todo_wine
{
expect_systime
(
&
st
[
0
],
&
getSt
[
1
]);
}
todo_wine
{
expect_systime
(
&
st
[
1
],
&
getSt
[
0
]);
ok
(
compare_systime
(
&
st
[
0
],
&
getSt
[
1
])
==
1
||
broken
(
compare_systime
(
&
st
[
0
],
&
getSt
[
0
])
==
1
),
/* comctl32 version <= 5.80 */
"ST1 != ST2
\n
"
);
ok
(
compare_systime
(
&
st
[
1
],
&
getSt
[
0
])
==
1
||
broken
(
compare_systime
(
&
st
[
1
],
&
getSt
[
1
])
==
1
),
/* comctl32 version <= 5.80 */
"ST1 != ST2
\n
"
);
}
/* set st[0] to value higher than st[1] */
...
...
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