From b81afb019a78d7a0056eb9afeebf32a5062918dc Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 22 Apr 2015 10:32:38 +0200 Subject: [PATCH] test-touchpad: Adjust touchpad_edge_scroll_no_2fg test for gesture support 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 Signed-off-by: Peter Hutterer --- test/touchpad.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/touchpad.c b/test/touchpad.c index f3d2e6a2..c04ef115 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);