Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
334efcde
Commit
334efcde
authored
May 13, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
May 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix test failures on Win9x/WinME.
parent
619b3896
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
scroll.c
dlls/user32/tests/scroll.c
+19
-11
No files found.
dlls/user32/tests/scroll.c
View file @
334efcde
...
...
@@ -222,25 +222,27 @@ static void scrollbar_test_default( DWORD style)
ret
=
GetScrollRange
(
hwnd
,
SB_VERT
,
&
min
,
&
max
);
ok
(
ret
||
broken
(
!
ret
)
/* Win 9
8
/ME */
,
"GetScrollRange failed.
\n
"
);
broken
(
!
ret
)
/* Win 9
x
/ME */
,
"GetScrollRange failed.
\n
"
);
/* range is 0,0 if there are no H or V scroll bars. 0,100 otherwise */
if
(
!
(
style
&
(
WS_VSCROLL
|
WS_HSCROLL
)))
ok
(
min
==
0
&&
max
==
0
,
"Scroll bar range is %d,%d. Expected 0,0. Style %08x
\n
"
,
min
,
max
,
style
);
else
todo_wine
ok
(
min
==
0
&&
max
==
100
,
ok
((
min
==
0
&&
max
==
100
)
||
broken
(
min
==
0
&&
max
==
0
),
/* Win 9x/ME */
"Scroll bar range is %d,%d. Expected 0,100. Style %08x
\n
"
,
min
,
max
,
style
);
ret
=
GetScrollRange
(
hwnd
,
SB_HORZ
,
&
min
,
&
max
);
ok
(
ret
||
broken
(
!
ret
)
/* Win 9
8
/ME */
,
"GetScrollRange failed.
\n
"
);
broken
(
!
ret
)
/* Win 9
x
/ME */
,
"GetScrollRange failed.
\n
"
);
/* range is 0,0 if there are no H or V scroll bars. 0,100 otherwise */
if
(
!
(
style
&
(
WS_VSCROLL
|
WS_HSCROLL
)))
ok
(
min
==
0
&&
max
==
0
,
"Scroll bar range is %d,%d. Expected 0,0. Style %08x
\n
"
,
min
,
max
,
style
);
else
todo_wine
ok
(
min
==
0
&&
max
==
100
,
ok
((
min
==
0
&&
max
==
100
)
||
broken
(
min
==
0
&&
max
==
0
),
/* Win 9x/ME */
"Scroll bar range is %d,%d. Expected 0,100. Style %08x
\n
"
,
min
,
max
,
style
);
/* test GetScrollInfo, vist for vertical SB */
ret
=
GetScrollInfo
(
hwnd
,
SB_VERT
,
&
si
);
...
...
@@ -249,7 +251,9 @@ todo_wine
ok
(
!
ret
,
"GetScrollInfo succeeded unexpectedly. Style is %08x
\n
"
,
style
);
else
todo_wine
ok
(
ret
,
"GetScrollInfo failed unexpectedly. Style is %08x
\n
"
,
style
);
ok
(
ret
||
broken
(
!
ret
),
/* Win 9x/ME */
"GetScrollInfo failed unexpectedly. Style is %08x
\n
"
,
style
);
/* Same for Horizontal SB */
ret
=
GetScrollInfo
(
hwnd
,
SB_HORZ
,
&
si
);
/* should fail if no H orV scroll bar styles are present. Succeed otherwise */
...
...
@@ -257,7 +261,9 @@ todo_wine
ok
(
!
ret
,
"GetScrollInfo succeeded unexpectedly. Style is %08x
\n
"
,
style
);
else
todo_wine
ok
(
ret
,
"GetScrollInfo failed unexpectedly. Style is %08x
\n
"
,
style
);
ok
(
ret
||
broken
(
!
ret
),
/* Win 9x/ME */
"GetScrollInfo failed unexpectedly. Style is %08x
\n
"
,
style
);
/* now set the Vertical Scroll range to something that could be the default value it
* already has */
;
ret
=
SetScrollRange
(
hwnd
,
SB_VERT
,
0
,
100
,
FALSE
);
...
...
@@ -276,7 +282,7 @@ todo_wine
/* should succeed in ALL cases */
ok
(
ret
,
"GetScrollInfo failed unexpectedly. Style is %08x
\n
"
,
style
);
/* report the windows style */
winstyle
=
GetWindowLong
W
(
hwnd
,
GWL_STYLE
);
winstyle
=
GetWindowLong
A
(
hwnd
,
GWL_STYLE
);
/* WS_VSCROLL added to the window style */
if
(
!
(
style
&
WS_VSCROLL
))
{
...
...
@@ -286,7 +292,8 @@ todo_wine
"unexpected style change %8lx expected %8lx
\n
"
,
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
)),
style
|
WS_VSCROLL
);
else
ok
(
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
))
==
style
,
ok
(
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
))
==
style
||
broken
((
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
))
==
(
WS_HSCROLL
|
WS_VSCROLL
)),
/* Win 9x/ME */
"unexpected style change %8lx expected %8x
\n
"
,
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
)),
style
);
}
...
...
@@ -314,7 +321,7 @@ todo_wine
/* should succeed in ALL cases */
ok
(
ret
,
"GetScrollInfo failed unexpectedly. Style is %08x
\n
"
,
style
);
/* report the windows style */
winstyle
=
GetWindowLong
W
(
hwnd
,
GWL_STYLE
);
winstyle
=
GetWindowLong
A
(
hwnd
,
GWL_STYLE
);
/* WS_HSCROLL added to the window style */
if
(
!
(
style
&
WS_HSCROLL
))
{
...
...
@@ -324,7 +331,8 @@ todo_wine
"unexpected style change %8lx expected %8lx
\n
"
,
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
)),
style
|
WS_HSCROLL
);
else
ok
(
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
))
==
style
,
ok
(
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
))
==
style
||
broken
((
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
))
==
(
WS_HSCROLL
|
WS_VSCROLL
)),
/* Win 9x/ME */
"unexpected style change %8lx expected %8x
\n
"
,
(
winstyle
&
(
WS_HSCROLL
|
WS_VSCROLL
)),
style
);
}
...
...
@@ -372,7 +380,7 @@ todo_wine
/* should fail */
ok
(
!
ret
,
"GetScrollInfo succeeded unexpectedly. Style is %08x
\n
"
,
style
);
/* add scroll styles */
winstyle
=
GetWindowLong
W
(
hwnd
,
GWL_STYLE
);
winstyle
=
GetWindowLong
A
(
hwnd
,
GWL_STYLE
);
SetWindowLongW
(
hwnd
,
GWL_STYLE
,
winstyle
|
WS_VSCROLL
|
WS_HSCROLL
);
ret
=
GetScrollInfo
(
hwnd
,
SB_VERT
,
&
si
);
/* should still fail */
...
...
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