From 4fe85b736ab5ea846a94bb22fc65cc20f59ed9f9 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 21 Nov 2016 14:33:30 +1000 Subject: [PATCH] test: fix edge-scroll no-motion test The test is supposed to make sure no motion event is sent and that scrolling continues once leaving the edge. It does so by moving down the edge, into the touchpad, then down further. The move from the edge into the touchpad had a vertical component to it though and could cause the scroll minimum test to fail. This is currently covered up by the delta calculations though, but fix it anyway. Signed-off-by: Peter Hutterer Reviewed-by: Hans de Goede --- test/touchpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/touchpad.c b/test/touchpad.c index 9a4aa6ca..cdc261bc 100644 --- a/test/touchpad.c +++ b/test/touchpad.c @@ -664,9 +664,9 @@ START_TEST(touchpad_edge_scroll_no_motion) litest_touch_down(dev, 0, 99, 10); litest_touch_move_to(dev, 0, 99, 10, 99, 70, 12, 0); /* moving outside -> no motion event */ - litest_touch_move_to(dev, 0, 99, 70, 20, 80, 12, 0); + litest_touch_move_to(dev, 0, 99, 70, 20, 70, 12, 0); /* moving down outside edge once scrolling had started -> scroll */ - litest_touch_move_to(dev, 0, 20, 80, 40, 99, 12, 0); + litest_touch_move_to(dev, 0, 20, 70, 40, 99, 12, 0); litest_touch_up(dev, 0); libinput_dispatch(li);