Rein Klazes wrote:
> test case for bug #18102
> ---
> dlls/user32/tests/scroll.c | 131 +++++++++++++++++++++++++++++++++++++++++++-
> 1 files changed, 130 insertions(+), 1 deletions(-)
>
> diff --git a/dlls/user32/tests/scroll.c b/dlls/user32/tests/scroll.c
> index 4f602c2..5cf3fcd 100644
> --- a/dlls/user32/tests/scroll.c
> +++ b/dlls/user32/tests/scroll.c
> @@ -220,6 +220,130 @@ static void scrollbar_test_track(void)
> ok( IsWindow( hScroll), "Scrollbar has gone!\n");
> }
>
> +/* some tests designed to show that Horizontal and Vertical
> + * window scroll bar info are not created independently */
> +static void scrollbar_test_default( DWORD style)
> +{
> + INT min, max, ret;
> + HWND hwnd;
> + SCROLLINFO si = { sizeof( SCROLLINFO), SIF_TRACKPOS };
> +
> + hwnd = CreateWindowExA( 0, "static", "", WS_POPUP | style,
> + 0, 0, 10, 10, 0, 0, 0, NULL);
> + assert( hwnd != 0);
> +
> + ret = GetScrollRange( hwnd, SB_VERT, &min, &max);
> + ok( ret ||
> + broken( !ret) /* Win 98/ME */
> + , "GetScrollRange failed.\n");
No comments on the patch as I don't know enough of this stuff. The comma
at the start of a new line looks strange though (couple of these in the
patch).
> + scrollbar_test_default( 0);
> +if( 0) { /* enable this when the todo's in scrollbar_test_default are fixed */
> + scrollbar_test_default( WS_HSCROLL);
> + scrollbar_test_default( WS_VSCROLL);
> + scrollbar_test_default( WS_HSCROLL | WS_VSCROLL);
> +}
Does Wine crash on these?
--
Cheers,
Paul.