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
33f145ac
Commit
33f145ac
authored
Jun 07, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/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
636340ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
appbar.c
dlls/shell32/tests/appbar.c
+2
-3
ebrowser.c
dlls/shell32/tests/ebrowser.c
+4
-8
No files found.
dlls/shell32/tests/appbar.c
View file @
33f145ac
...
...
@@ -196,9 +196,8 @@ static void register_testwindow_class(void)
#define test_window_rects(a, b) \
ok(!IntersectRect(&rc, &windows[a].allocated_rect, &windows[b].allocated_rect), \
"rectangles intersect (%i,%i,%i,%i)/(%i,%i,%i,%i)\n", \
windows[a].allocated_rect.left, windows[a].allocated_rect.top, windows[a].allocated_rect.right, windows[a].allocated_rect.bottom, \
windows[b].allocated_rect.left, windows[b].allocated_rect.top, windows[b].allocated_rect.right, windows[b].allocated_rect.bottom)
"rectangles intersect %s / %s\n", wine_dbgstr_rect(&windows[a].allocated_rect), \
wine_dbgstr_rect(&windows[b].allocated_rect))
static
void
test_setpos
(
void
)
{
...
...
dlls/shell32/tests/ebrowser.c
View file @
33f145ac
...
...
@@ -818,8 +818,7 @@ static void test_initialization(void)
ok
(
hr
==
S_OK
,
"Got 0x%08x
\n
"
,
hr
);
GetClientRect
(
eb_hwnd
,
&
eb_rc
);
ok
(
EqualRect
(
&
eb_rc
,
&
exp_rc
),
"Got client rect (%d, %d)-(%d, %d)
\n
"
,
eb_rc
.
left
,
eb_rc
.
top
,
eb_rc
.
right
,
eb_rc
.
bottom
);
ok
(
EqualRect
(
&
eb_rc
,
&
exp_rc
),
"Got client rect %s
\n
"
,
wine_dbgstr_rect
(
&
eb_rc
));
GetWindowRect
(
eb_hwnd
,
&
eb_rc
);
ok
(
eb_rc
.
right
-
eb_rc
.
left
==
50
,
"Got window width %d
\n
"
,
eb_rc
.
right
-
eb_rc
.
left
);
...
...
@@ -1142,8 +1141,7 @@ static void test_basics(void)
GetClientRect
(
eb_hwnd
,
&
eb_rc
);
MapWindowPoints
(
eb_hwnd
,
hwnd
,
(
POINT
*
)
&
eb_rc
,
2
);
ok
(
EqualRect
(
&
eb_rc
,
&
exp_rc
),
"Got rect (%d, %d) - (%d, %d)
\n
"
,
eb_rc
.
left
,
eb_rc
.
top
,
eb_rc
.
right
,
eb_rc
.
bottom
);
ok
(
EqualRect
(
&
eb_rc
,
&
exp_rc
),
"Got rect %s
\n
"
,
wine_dbgstr_rect
(
&
eb_rc
));
/* Try resizing with invalid hdwp */
rc
.
bottom
=
25
;
...
...
@@ -1152,16 +1150,14 @@ static void test_basics(void)
ok
(
hr
==
E_FAIL
,
"Got 0x%08x
\n
"
,
hr
);
GetClientRect
(
eb_hwnd
,
&
eb_rc
);
MapWindowPoints
(
eb_hwnd
,
hwnd
,
(
POINT
*
)
&
eb_rc
,
2
);
ok
(
EqualRect
(
&
eb_rc
,
&
exp_rc
),
"Got rect (%d, %d) - (%d, %d)
\n
"
,
eb_rc
.
left
,
eb_rc
.
top
,
eb_rc
.
right
,
eb_rc
.
bottom
);
ok
(
EqualRect
(
&
eb_rc
,
&
exp_rc
),
"Got rect %s
\n
"
,
wine_dbgstr_rect
(
&
eb_rc
));
hdwp
=
NULL
;
hr
=
IExplorerBrowser_SetRect
(
peb
,
&
hdwp
,
rc
);
ok
(
hr
==
S_OK
,
"Got 0x%08x
\n
"
,
hr
);
GetClientRect
(
eb_hwnd
,
&
eb_rc
);
MapWindowPoints
(
eb_hwnd
,
hwnd
,
(
POINT
*
)
&
eb_rc
,
2
);
ok
(
EqualRect
(
&
eb_rc
,
&
exp_rc2
),
"Got rect (%d, %d) - (%d, %d)
\n
"
,
eb_rc
.
left
,
eb_rc
.
top
,
eb_rc
.
right
,
eb_rc
.
bottom
);
ok
(
EqualRect
(
&
eb_rc
,
&
exp_rc2
),
"Got rect %s
\n
"
,
wine_dbgstr_rect
(
&
eb_rc
));
IShellBrowser_Release
(
psb
);
}
...
...
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