From 83fb3a89bedae6761963e083ed7067b45b3362cb Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 26 Sep 2014 11:46:00 +0200 Subject: touchpad: Make motion during tap-n-drag test take some time The tap code will move individual touches to a state of TAP_TOUCH_STATE_DEAD after a timeout. In case of tap-n-drag this should not have any influence, make the litest_touch_move_to take long enough to trigger the timeout to verify that this does not has any influence. Signed-off-by: Hans de Goede --- test/touchpad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/touchpad.c b/test/touchpad.c index 576f9ffa..8bd09f19 100644 --- a/test/touchpad.c +++ b/test/touchpad.c @@ -131,7 +131,7 @@ START_TEST(touchpad_1fg_tap_n_drag) litest_touch_down(dev, 0, 50, 50); litest_touch_up(dev, 0); litest_touch_down(dev, 0, 50, 50); - litest_touch_move_to(dev, 0, 50, 50, 80, 80, 5, 0); + litest_touch_move_to(dev, 0, 50, 50, 80, 80, 5, 40); litest_touch_up(dev, 0); libinput_dispatch(li); @@ -150,7 +150,7 @@ START_TEST(touchpad_1fg_tap_n_drag) /* lift finger, set down again, should continue dragging */ litest_touch_down(dev, 0, 50, 50); - litest_touch_move_to(dev, 0, 50, 50, 80, 80, 5, 0); + litest_touch_move_to(dev, 0, 50, 50, 80, 80, 5, 40); litest_touch_up(dev, 0); libinput_dispatch(li); -- cgit v1.2.1