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

Hans de Goede hdegoede at redhat.com
Wed Apr 22 01:32:38 PDT 2015


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>
---
 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



More information about the wayland-devel mailing list