summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-11-21 14:33:30 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-11-22 11:23:39 +1000
commit4fe85b736ab5ea846a94bb22fc65cc20f59ed9f9 (patch)
treeb04e3fa49ae2efee712ebbe4011a45fab4f9a4e7 /test
parent63409a693865f11262a15d941755f1277357289e (diff)
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 <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/touchpad.c4
1 files 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);