[PATCH libinput 10/14] test: change semi-mt 2fg scroll test to use two-finger movement

Peter Hutterer peter.hutterer at who-t.net
Thu Jan 7 20:11:14 PST 2016


As we implement more gestures, we will drop two-finger scrolling performed by
only a single finger movement.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/touchpad.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/touchpad.c b/test/touchpad.c
index 4eb9418..c176549 100644
--- a/test/touchpad.c
+++ b/test/touchpad.c
@@ -289,11 +289,11 @@ START_TEST(touchpad_2fg_scroll_semi_mt)
 	litest_touch_down(dev, 0, 20, 20);
 	litest_touch_down(dev, 1, 30, 20);
 	libinput_dispatch(li);
-	litest_touch_move_to(dev, 1, 30, 20, 30, 70, 10, 5);
-
-	litest_assert_empty_queue(li);
-
-	litest_touch_move_to(dev, 0, 20, 20, 20, 70, 10, 5);
+	litest_touch_move_two_touches(dev,
+				      20, 20,
+				      30, 20,
+				      30, 40,
+				      10, 1);
 
 	litest_assert_only_typed_events(li, LIBINPUT_EVENT_POINTER_AXIS);
 }
-- 
2.5.0



More information about the wayland-devel mailing list