diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-09-26 11:46:00 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2014-11-06 11:04:17 +0100 |
commit | 83fb3a89bedae6761963e083ed7067b45b3362cb (patch) | |
tree | 24fa74873172bfd13acfef6bbd1a73ce743e9f9c /test | |
parent | 00f74270e5c28e02a3e4fcbbc5d34770aff3911b (diff) | |
download | libinput-83fb3a89bedae6761963e083ed7067b45b3362cb.tar.gz |
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 <hdegoede@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/touchpad.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |