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
a1f0d09a
Commit
a1f0d09a
authored
Jul 06, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/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
af91122c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
17 deletions
+7
-17
scroll.c
dlls/user32/tests/scroll.c
+6
-15
win.c
dlls/user32/tests/win.c
+1
-2
No files found.
dlls/user32/tests/scroll.c
View file @
a1f0d09a
...
...
@@ -222,11 +222,8 @@ static void test_GetScrollBarInfo(void)
ok
(
ret
,
"The GetWindowRect() call should not fail.
\n
"
);
ok
(
!
(
sbi
.
rgstate
[
0
]
&
(
STATE_SYSTEM_INVISIBLE
|
STATE_SYSTEM_OFFSCREEN
)),
"unexpected rgstate(0x%x)
\n
"
,
sbi
.
rgstate
[
0
]);
ok
(
EqualRect
(
&
rect
,
&
sbi
.
rcScrollBar
),
"WindowRect(%d, %d, %d, %d) != rcScrollBar(%d, %d, %d, %d)
\n
"
,
rect
.
top
,
rect
.
left
,
rect
.
bottom
,
rect
.
right
,
sbi
.
rcScrollBar
.
top
,
sbi
.
rcScrollBar
.
left
,
sbi
.
rcScrollBar
.
bottom
,
sbi
.
rcScrollBar
.
right
);
ok
(
EqualRect
(
&
rect
,
&
sbi
.
rcScrollBar
),
"WindowRect %s != rcScrollBar %s
\n
"
,
wine_dbgstr_rect
(
&
rect
),
wine_dbgstr_rect
(
&
sbi
.
rcScrollBar
));
/* Test windows horizontal and vertical scrollbar to make sure rcScrollBar
* is still returned in screen coordinates by moving the window, and
...
...
@@ -243,11 +240,8 @@ static void test_GetScrollBarInfo(void)
OffsetRect
(
&
rect
,
5
,
5
);
ret
=
pGetScrollBarInfo
(
hMainWnd
,
OBJID_HSCROLL
,
&
sbi
);
ok
(
ret
,
"The GetScrollBarInfo() call should not fail.
\n
"
);
ok
(
EqualRect
(
&
rect
,
&
sbi
.
rcScrollBar
),
"PreviousRect(%d, %d, %d, %d) != CurrentRect(%d, %d, %d, %d)
\n
"
,
rect
.
top
,
rect
.
left
,
rect
.
bottom
,
rect
.
right
,
sbi
.
rcScrollBar
.
top
,
sbi
.
rcScrollBar
.
left
,
sbi
.
rcScrollBar
.
bottom
,
sbi
.
rcScrollBar
.
right
);
ok
(
EqualRect
(
&
rect
,
&
sbi
.
rcScrollBar
),
"PreviousRect %s != CurrentRect %s
\n
"
,
wine_dbgstr_rect
(
&
rect
),
wine_dbgstr_rect
(
&
sbi
.
rcScrollBar
));
sbi
.
cbSize
=
sizeof
(
sbi
);
ret
=
pGetScrollBarInfo
(
hMainWnd
,
OBJID_VSCROLL
,
&
sbi
);
...
...
@@ -260,11 +254,8 @@ static void test_GetScrollBarInfo(void)
OffsetRect
(
&
rect
,
5
,
5
);
ret
=
pGetScrollBarInfo
(
hMainWnd
,
OBJID_VSCROLL
,
&
sbi
);
ok
(
ret
,
"The GetScrollBarInfo() call should not fail.
\n
"
);
ok
(
EqualRect
(
&
rect
,
&
sbi
.
rcScrollBar
),
"PreviousRect(%d, %d, %d, %d) != CurrentRect(%d, %d, %d, %d)
\n
"
,
rect
.
top
,
rect
.
left
,
rect
.
bottom
,
rect
.
right
,
sbi
.
rcScrollBar
.
top
,
sbi
.
rcScrollBar
.
left
,
sbi
.
rcScrollBar
.
bottom
,
sbi
.
rcScrollBar
.
right
);
ok
(
EqualRect
(
&
rect
,
&
sbi
.
rcScrollBar
),
"PreviousRect %s != CurrentRect %s
\n
"
,
wine_dbgstr_rect
(
&
rect
),
wine_dbgstr_rect
(
&
sbi
.
rcScrollBar
));
DestroyWindow
(
hScroll
);
DestroyWindow
(
hMainWnd
);
...
...
dlls/user32/tests/win.c
View file @
a1f0d09a
...
...
@@ -2504,8 +2504,7 @@ static void test_SetWindowPos(HWND hwnd, HWND hwnd2)
ret
=
SetWindowPos
(
hwnd_child
,
hwnd_desktop
,
0
,
0
,
0
,
0
,
0
);
ok
(
!
ret
,
"Got %d
\n
"
,
ret
);
GetWindowRect
(
hwnd_child
,
&
rc2
);
ok
(
EqualRect
(
&
rc1
,
&
rc2
),
"(%d, %d, %d, %d) != (%d, %d, %d, %d)
\n
"
,
rc1
.
top
,
rc1
.
left
,
rc1
.
bottom
,
rc1
.
right
,
rc2
.
top
,
rc2
.
left
,
rc2
.
bottom
,
rc2
.
right
);
ok
(
EqualRect
(
&
rc1
,
&
rc2
),
"%s != %s
\n
"
,
wine_dbgstr_rect
(
&
rc1
),
wine_dbgstr_rect
(
&
rc2
));
check_active_state
(
hwnd2
,
hwnd2
,
hwnd2
);
ret
=
SetWindowPos
(
hwnd_desktop
,
hwnd_child
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
);
...
...
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