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
db134bbd
Commit
db134bbd
authored
Jun 10, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/tests: Use wine_dbgstr_rect() to print RECTs.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2e4f89ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
32 deletions
+24
-32
filedlg.c
dlls/comdlg32/tests/filedlg.c
+24
-32
No files found.
dlls/comdlg32/tests/filedlg.c
View file @
db134bbd
...
...
@@ -422,63 +422,56 @@ static UINT_PTR WINAPI resize_template_hook(HWND dlg, UINT msg, WPARAM wParam, L
case
cmb1
:
case
edt1
:
ok
(
TESTRECTS
(
ctrlrcs
[
i
],
rc
,
0
,
10
,
10
,
0
),
"control id %03x should have sized horizontally and moved vertically, before %d,%d-%d,%d after %d,%d-%d,%d
\n
"
,
ctrlids
[
i
],
ctrlrcs
[
i
].
left
,
ctrlrcs
[
i
].
top
,
ctrlrcs
[
i
].
right
,
ctrlrcs
[
i
].
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
"control id %03x should have sized horizontally and moved vertically, before %s after %s
\n
"
,
ctrlids
[
i
],
wine_dbgstr_rect
(
&
ctrlrcs
[
i
]
),
wine_dbgstr_rect
(
&
rc
));
break
;
/* sized horizontal and vertical */
case
lst2
:
ok
(
TESTRECTS
(
ctrlrcs
[
i
],
rc
,
0
,
0
,
10
,
10
),
"control id %03x should have sized horizontally and vertically, before %d,%d-%d,%d after %d,%d-%d,%d
\n
"
,
ctrlids
[
i
],
ctrlrcs
[
i
].
left
,
ctrlrcs
[
i
].
top
,
ctrlrcs
[
i
].
right
,
ctrlrcs
[
i
].
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
"control id %03x should have sized horizontally and vertically, before %s after %s
\n
"
,
ctrlids
[
i
],
wine_dbgstr_rect
(
&
ctrlrcs
[
i
]
),
wine_dbgstr_rect
(
&
rc
));
break
;
/* moved horizontal and vertical */
case
IDCANCEL
:
case
pshHelp
:
ok
(
TESTRECTS
(
ctrlrcs
[
i
],
rc
,
10
,
10
,
0
,
0
),
"control id %03x should have moved horizontally and vertically, before %d,%d-%d,%d after %d,%d-%d,%d
\n
"
,
ctrlids
[
i
],
ctrlrcs
[
i
].
left
,
ctrlrcs
[
i
].
top
,
ctrlrcs
[
i
].
right
,
ctrlrcs
[
i
].
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
"control id %03x should have moved horizontally and vertically, before %s after %s
\n
"
,
ctrlids
[
i
],
wine_dbgstr_rect
(
&
ctrlrcs
[
i
]
),
wine_dbgstr_rect
(
&
rc
));
break
;
/* moved vertically */
case
chx1
:
case
stc2
:
case
stc3
:
ok
(
TESTRECTS
(
ctrlrcs
[
i
],
rc
,
0
,
10
,
0
,
0
),
"control id %03x should have moved vertically, before %d,%d-%d,%d after %d,%d-%d,%d
\n
"
,
ctrlids
[
i
],
ctrlrcs
[
i
].
left
,
ctrlrcs
[
i
].
top
,
ctrlrcs
[
i
].
right
,
ctrlrcs
[
i
].
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
"control id %03x should have moved vertically, before %s after %s
\n
"
,
ctrlids
[
i
],
wine_dbgstr_rect
(
&
ctrlrcs
[
i
]
),
wine_dbgstr_rect
(
&
rc
));
break
;
/* resized horizontal */
case
cmb2
:
/* aka IDC_LOOKIN */
ok
(
TESTRECTS
(
ctrlrcs
[
i
],
rc
,
0
,
0
,
10
,
0
)
||
TESTRECTS
(
ctrlrcs
[
i
],
rc
,
0
,
0
,
0
,
0
),
/* Vista and higher */
"control id %03x should have resized horizontally, before %d,%d-%d,%d after %d,%d-%d,%d
\n
"
,
ctrlids
[
i
],
ctrlrcs
[
i
].
left
,
ctrlrcs
[
i
].
top
,
ctrlrcs
[
i
].
right
,
ctrlrcs
[
i
].
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
"control id %03x should have resized horizontally, before %s after %s
\n
"
,
ctrlids
[
i
],
wine_dbgstr_rect
(
&
ctrlrcs
[
i
]
),
wine_dbgstr_rect
(
&
rc
));
break
;
/* non moving non sizing controls */
case
stc4
:
ok
(
TESTRECTS
(
rc
,
ctrlrcs
[
i
],
0
,
0
,
0
,
0
),
"control id %03x was moved/resized, before %d,%d-%d,%d after %d,%d-%d,%d
\n
"
,
ctrlids
[
i
],
ctrlrcs
[
i
].
left
,
ctrlrcs
[
i
].
top
,
ctrlrcs
[
i
].
right
,
ctrlrcs
[
i
].
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
"control id %03x was moved/resized, before %s after %s
\n
"
,
ctrlids
[
i
],
wine_dbgstr_rect
(
&
ctrlrcs
[
i
]
),
wine_dbgstr_rect
(
&
rc
));
break
;
/* todo_wine: non moving non sizing controls */
case
lst1
:
todo_wine
ok
(
TESTRECTS
(
rc
,
ctrlrcs
[
i
],
0
,
0
,
0
,
0
),
"control id %03x was moved/resized, before %d,%d-%d,%d after %d,%d-%d,%d
\n
"
,
ctrlids
[
i
],
ctrlrcs
[
i
].
left
,
ctrlrcs
[
i
].
top
,
ctrlrcs
[
i
].
right
,
ctrlrcs
[
i
].
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
"control id %03x was moved/resized, before %s after %s
\n
"
,
ctrlids
[
i
],
wine_dbgstr_rect
(
&
ctrlrcs
[
i
]
),
wine_dbgstr_rect
(
&
rc
));
break
;
/* don't test: id is not unique */
case
IDOK
:
...
...
@@ -487,10 +480,9 @@ todo_wine
case
-
1
:
break
;
default:
trace
(
"untested control id %03x before %d,%d-%d,%d after %d,%d-%d,%d
\n
"
,
ctrlids
[
i
],
ctrlrcs
[
i
].
left
,
ctrlrcs
[
i
].
top
,
ctrlrcs
[
i
].
right
,
ctrlrcs
[
i
].
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
trace
(
"untested control id %03x before %s after %s
\n
"
,
ctrlids
[
i
],
wine_dbgstr_rect
(
&
ctrlrcs
[
i
]
),
wine_dbgstr_rect
(
&
rc
));
#undef TESTRECTS
#undef MAXNRCTRLS
}
...
...
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