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
fe9f23a2
Commit
fe9f23a2
authored
Jun 06, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Use EqualRect() instead of open coding it.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7f548e3f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
rebar.c
dlls/comctl32/tests/rebar.c
+2
-2
toolbar.c
dlls/comctl32/tests/toolbar.c
+2
-2
No files found.
dlls/comctl32/tests/rebar.c
View file @
fe9f23a2
...
...
@@ -35,8 +35,8 @@ static HWND hMainWnd;
static
int
system_font_height
;
#define check_rect(name, val, exp) ok(
val.top == exp.top && val.bottom == exp.bottom &&
\
val.left == exp.left && val.right == exp.right,
"invalid rect (" name ") (%d,%d) (%d,%d) - expected (%d,%d) (%d,%d)\n", \
#define check_rect(name, val, exp) ok(
EqualRect(&val, &exp),
\
"invalid rect (" name ") (%d,%d) (%d,%d) - expected (%d,%d) (%d,%d)\n", \
val.left, val.top, val.right, val.bottom, exp.left, exp.top, exp.right, exp.bottom);
#define check_rect_no_top(name, val, exp) { \
...
...
dlls/comctl32/tests/toolbar.c
View file @
fe9f23a2
...
...
@@ -108,8 +108,8 @@ static const struct message restore_parent_seq[] = {
#define expect(EXPECTED,GOT) ok((GOT)==(EXPECTED), "Expected %d, got %d\n", (EXPECTED), (GOT))
#define check_rect(name, val, exp, ...) ok(
val.top == exp.top && val.bottom == exp.bottom &&
\
val.left == exp.left && val.right == exp.right,
"invalid rect (%d,%d) (%d,%d) - expected (%d,%d) (%d,%d) - (" name ")\n", \
#define check_rect(name, val, exp, ...) ok(
EqualRect(&val, &exp),
\
"invalid rect (%d,%d) (%d,%d) - expected (%d,%d) (%d,%d) - (" name ")\n", \
val.left, val.top, val.right, val.bottom, exp.left, exp.top, exp.right, exp.bottom, __VA_ARGS__);
#define compare(val, exp, format) ok((val) == (exp), #val " value " format " expected " format "\n", (val), (exp));
...
...
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