[PATCH] test-touchpad: Adjust touchpad_edge_scroll_no_2fg test for gesture support

Peter Hutterer peter.hutterer at who-t.net
Wed Apr 22 17:32:48 PDT 2015


On Wed, Apr 22, 2015 at 10:32:38AM +0200, Hans de Goede wrote:
> Unlike all the other 2fg scroll tests the touchpad_edge_scroll_no_2fg test
> puts the 2 fingers down quite far apart, this makes the pinch vs scroll
> gesture detection code in the gestures branch detect a pinch causing the
> test to fail.
> 
> This commit brings the finger placement in line with the other 2fg scroll
> tests fixing this.
> 
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>

oops, sorry about that. pushed.

Cheers,
   Peter

> ---
>  test/touchpad.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/test/touchpad.c b/test/touchpad.c
> index ad9203a..d05c8cf 100644
> --- a/test/touchpad.c
> +++ b/test/touchpad.c
> @@ -2829,9 +2829,9 @@ START_TEST(touchpad_edge_scroll_no_2fg)
>  	litest_drain_events(li);
>  	enable_edge_scroll(dev);
>  
> -	litest_touch_down(dev, 0, 20, 20);
> -	litest_touch_down(dev, 1, 40, 20);
> -	litest_touch_move_two_touches(dev, 20, 20, 40, 20, 20, 30, 10, 3);
> +	litest_touch_down(dev, 0, 49, 50);
> +	litest_touch_down(dev, 1, 51, 50);
> +	litest_touch_move_two_touches(dev, 49, 50, 51, 50, 20, 30, 5, 0);
>  	libinput_dispatch(li);
>  	litest_touch_up(dev, 0);
>  	litest_touch_up(dev, 1);
> -- 
> 2.3.5
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
> 


More information about the wayland-devel mailing list