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
780ebcc7
Commit
780ebcc7
authored
Feb 10, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Simplify tests using todo_wine_if().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e17e6e42
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
42 deletions
+6
-42
header.c
dlls/comctl32/tests/header.c
+1
-5
listview.c
dlls/comctl32/tests/listview.c
+4
-31
monthcal.c
dlls/comctl32/tests/monthcal.c
+1
-6
No files found.
dlls/comctl32/tests/header.c
View file @
780ebcc7
...
...
@@ -1721,11 +1721,7 @@ static void check_orderarray(HWND hwnd, DWORD start, DWORD set, DWORD expected,
for
(
i
=
1
;
i
<=
count
;
i
++
)
array
|=
order
[
i
-
1
]
<<
(
4
*
(
count
-
i
));
if
(
todo
)
{
todo_wine
ok_
(
__FILE__
,
line
)(
array
==
expected
,
"Expected %x, got %x
\n
"
,
expected
,
array
);
}
else
todo_wine_if
(
todo
)
ok_
(
__FILE__
,
line
)(
array
==
expected
,
"Expected %x, got %x
\n
"
,
expected
,
array
);
}
...
...
dlls/comctl32/tests/listview.c
View file @
780ebcc7
...
...
@@ -790,16 +790,7 @@ static void test_lvm_hittest_(HWND hwnd, INT x, INT y, INT item, UINT flags, UIN
ret
=
SendMessageA
(
hwnd
,
LVM_HITTEST
,
0
,
(
LPARAM
)
&
lpht
);
if
(
todo_item
)
{
todo_wine
{
ok_
(
__FILE__
,
line
)(
ret
==
item
,
"Expected %d retval, got %d
\n
"
,
item
,
ret
);
ok_
(
__FILE__
,
line
)(
lpht
.
iItem
==
item
,
"Expected %d item, got %d
\n
"
,
item
,
lpht
.
iItem
);
ok_
(
__FILE__
,
line
)(
lpht
.
iSubItem
==
10
,
"Expected subitem not overwrited
\n
"
);
}
}
else
todo_wine_if
(
todo_item
)
{
ok_
(
__FILE__
,
line
)(
ret
==
item
,
"Expected %d retval, got %d
\n
"
,
item
,
ret
);
ok_
(
__FILE__
,
line
)(
lpht
.
iItem
==
item
,
"Expected %d item, got %d
\n
"
,
item
,
lpht
.
iItem
);
...
...
@@ -832,34 +823,16 @@ static void test_lvm_subitemhittest_(HWND hwnd, INT x, INT y, INT item, INT subi
ret
=
SendMessageA
(
hwnd
,
LVM_SUBITEMHITTEST
,
0
,
(
LPARAM
)
&
lpht
);
if
(
todo_item
)
{
todo_wine
{
ok_
(
__FILE__
,
line
)(
ret
==
item
,
"Expected %d retval, got %d
\n
"
,
item
,
ret
);
ok_
(
__FILE__
,
line
)(
lpht
.
iItem
==
item
,
"Expected %d item, got %d
\n
"
,
item
,
lpht
.
iItem
);
}
}
else
todo_wine_if
(
todo_item
)
{
ok_
(
__FILE__
,
line
)(
ret
==
item
,
"Expected %d retval, got %d
\n
"
,
item
,
ret
);
ok_
(
__FILE__
,
line
)(
lpht
.
iItem
==
item
,
"Expected %d item, got %d
\n
"
,
item
,
lpht
.
iItem
);
}
if
(
todo_subitem
)
{
todo_wine
ok_
(
__FILE__
,
line
)(
lpht
.
iSubItem
==
subitem
,
"Expected subitem %d, got %d
\n
"
,
subitem
,
lpht
.
iSubItem
);
}
else
todo_wine_if
(
todo_subitem
)
ok_
(
__FILE__
,
line
)(
lpht
.
iSubItem
==
subitem
,
"Expected subitem %d, got %d
\n
"
,
subitem
,
lpht
.
iSubItem
);
if
(
todo_flags
)
{
todo_wine
ok_
(
__FILE__
,
line
)(
lpht
.
flags
==
flags
,
"Expected flags 0x%x, got 0x%x
\n
"
,
flags
,
lpht
.
flags
);
}
else
todo_wine_if
(
todo_flags
)
ok_
(
__FILE__
,
line
)(
lpht
.
flags
==
flags
,
"Expected flags 0x%x, got 0x%x
\n
"
,
flags
,
lpht
.
flags
);
}
...
...
dlls/comctl32/tests/monthcal.c
View file @
780ebcc7
...
...
@@ -1182,14 +1182,9 @@ if (0)
if
(
sizeof
(
title_hits
)
/
sizeof
(
title_hits
[
0
])
<=
title_index
)
break
;
if
(
title_hits
[
title_index
].
todo
)
{
todo_wine
todo_wine_if
(
title_hits
[
title_index
].
todo
)
ok
(
title_hits
[
title_index
].
ht
==
res
,
"Expected %x, got %x, pos %d
\n
"
,
title_hits
[
title_index
].
ht
,
res
,
x
);
}
else
{
ok
(
title_hits
[
title_index
].
ht
==
res
,
"Expected %x, got %x, pos %d
\n
"
,
title_hits
[
title_index
].
ht
,
res
,
x
);
}
}
old_res
=
res
;
}
...
...
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