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
63f15d44
Commit
63f15d44
authored
Oct 06, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Run tests on win95 again.
parent
81f75c18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
scroll.c
dlls/user32/tests/scroll.c
+13
-5
No files found.
dlls/user32/tests/scroll.c
View file @
63f15d44
...
@@ -132,11 +132,19 @@ static void scrollbar_test4(void)
...
@@ -132,11 +132,19 @@ static void scrollbar_test4(void)
BOOL
ret
;
BOOL
ret
;
SCROLLBARINFO
sbi
;
SCROLLBARINFO
sbi
;
RECT
rect
;
RECT
rect
;
BOOL
(
WINAPI
*
pGetScrollBarInfo
)(
HWND
,
LONG
,
LPSCROLLBARINFO
);
pGetScrollBarInfo
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"user32.dll"
),
"GetScrollBarInfo"
);
if
(
!
pGetScrollBarInfo
)
{
win_skip
(
"GetScrollBarInfo is not available
\n
"
);
return
;
}
/* Test GetScrollBarInfo to make sure it returns rcScrollBar in screen
/* Test GetScrollBarInfo to make sure it returns rcScrollBar in screen
* coordinates. */
* coordinates. */
sbi
.
cbSize
=
sizeof
(
sbi
);
sbi
.
cbSize
=
sizeof
(
sbi
);
ret
=
GetScrollBarInfo
(
hScroll
,
OBJID_CLIENT
,
&
sbi
);
ret
=
p
GetScrollBarInfo
(
hScroll
,
OBJID_CLIENT
,
&
sbi
);
ok
(
ret
,
"The GetScrollBarInfo() call should not fail.
\n
"
);
ok
(
ret
,
"The GetScrollBarInfo() call should not fail.
\n
"
);
GetWindowRect
(
hScroll
,
&
rect
);
GetWindowRect
(
hScroll
,
&
rect
);
ok
(
ret
,
"The GetWindowRect() call should not fail.
\n
"
);
ok
(
ret
,
"The GetWindowRect() call should not fail.
\n
"
);
...
@@ -153,7 +161,7 @@ static void scrollbar_test4(void)
...
@@ -153,7 +161,7 @@ static void scrollbar_test4(void)
* making sure that it shifts the rcScrollBar value. */
* making sure that it shifts the rcScrollBar value. */
ShowWindow
(
hMainWnd
,
SW_SHOW
);
ShowWindow
(
hMainWnd
,
SW_SHOW
);
sbi
.
cbSize
=
sizeof
(
sbi
);
sbi
.
cbSize
=
sizeof
(
sbi
);
ret
=
GetScrollBarInfo
(
hMainWnd
,
OBJID_HSCROLL
,
&
sbi
);
ret
=
p
GetScrollBarInfo
(
hMainWnd
,
OBJID_HSCROLL
,
&
sbi
);
ok
(
ret
,
"The GetScrollBarInfo() call should not fail.
\n
"
);
ok
(
ret
,
"The GetScrollBarInfo() call should not fail.
\n
"
);
GetWindowRect
(
hMainWnd
,
&
rect
);
GetWindowRect
(
hMainWnd
,
&
rect
);
ok
(
ret
,
"The GetWindowRect() call should not fail.
\n
"
);
ok
(
ret
,
"The GetWindowRect() call should not fail.
\n
"
);
...
@@ -161,7 +169,7 @@ static void scrollbar_test4(void)
...
@@ -161,7 +169,7 @@ static void scrollbar_test4(void)
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
TRUE
);
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
TRUE
);
rect
=
sbi
.
rcScrollBar
;
rect
=
sbi
.
rcScrollBar
;
OffsetRect
(
&
rect
,
5
,
5
);
OffsetRect
(
&
rect
,
5
,
5
);
ret
=
GetScrollBarInfo
(
hMainWnd
,
OBJID_HSCROLL
,
&
sbi
);
ret
=
p
GetScrollBarInfo
(
hMainWnd
,
OBJID_HSCROLL
,
&
sbi
);
ok
(
ret
,
"The GetScrollBarInfo() call should not fail.
\n
"
);
ok
(
ret
,
"The GetScrollBarInfo() call should not fail.
\n
"
);
ok
(
EqualRect
(
&
rect
,
&
sbi
.
rcScrollBar
),
ok
(
EqualRect
(
&
rect
,
&
sbi
.
rcScrollBar
),
"PreviousRect(%d, %d, %d, %d) != CurrentRect(%d, %d, %d, %d)
\n
"
,
"PreviousRect(%d, %d, %d, %d) != CurrentRect(%d, %d, %d, %d)
\n
"
,
...
@@ -170,7 +178,7 @@ static void scrollbar_test4(void)
...
@@ -170,7 +178,7 @@ static void scrollbar_test4(void)
sbi
.
rcScrollBar
.
bottom
,
sbi
.
rcScrollBar
.
right
);
sbi
.
rcScrollBar
.
bottom
,
sbi
.
rcScrollBar
.
right
);
sbi
.
cbSize
=
sizeof
(
sbi
);
sbi
.
cbSize
=
sizeof
(
sbi
);
ret
=
GetScrollBarInfo
(
hMainWnd
,
OBJID_VSCROLL
,
&
sbi
);
ret
=
p
GetScrollBarInfo
(
hMainWnd
,
OBJID_VSCROLL
,
&
sbi
);
ok
(
ret
,
"The GetScrollBarInfo() call should not fail.
\n
"
);
ok
(
ret
,
"The GetScrollBarInfo() call should not fail.
\n
"
);
GetWindowRect
(
hMainWnd
,
&
rect
);
GetWindowRect
(
hMainWnd
,
&
rect
);
ok
(
ret
,
"The GetWindowRect() call should not fail.
\n
"
);
ok
(
ret
,
"The GetWindowRect() call should not fail.
\n
"
);
...
@@ -178,7 +186,7 @@ static void scrollbar_test4(void)
...
@@ -178,7 +186,7 @@ static void scrollbar_test4(void)
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
TRUE
);
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
TRUE
);
rect
=
sbi
.
rcScrollBar
;
rect
=
sbi
.
rcScrollBar
;
OffsetRect
(
&
rect
,
5
,
5
);
OffsetRect
(
&
rect
,
5
,
5
);
ret
=
GetScrollBarInfo
(
hMainWnd
,
OBJID_VSCROLL
,
&
sbi
);
ret
=
p
GetScrollBarInfo
(
hMainWnd
,
OBJID_VSCROLL
,
&
sbi
);
ok
(
ret
,
"The GetScrollBarInfo() call should not fail.
\n
"
);
ok
(
ret
,
"The GetScrollBarInfo() call should not fail.
\n
"
);
ok
(
EqualRect
(
&
rect
,
&
sbi
.
rcScrollBar
),
ok
(
EqualRect
(
&
rect
,
&
sbi
.
rcScrollBar
),
"PreviousRect(%d, %d, %d, %d) != CurrentRect(%d, %d, %d, %d)
\n
"
,
"PreviousRect(%d, %d, %d, %d) != CurrentRect(%d, %d, %d, %d)
\n
"
,
...
...
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