mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-22 01:00:37 +01:00
test: make the touchpad jump test more robust for timing errors
move_to() now uses delays, let's make this test more robust for timing errors so we don't fall below the threshold movement we want to trigger. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
974425f8b7
commit
35b100a2ef
1 changed files with 2 additions and 2 deletions
|
|
@ -5580,11 +5580,11 @@ START_TEST(touchpad_jump_delta)
|
|||
* jump to test the delta jumps. These numbers may not work on any
|
||||
* other device */
|
||||
litest_disable_log_handler(li);
|
||||
litest_touch_move_to(dev, 0, 90, 30, 90, 80, 1, 0);
|
||||
litest_touch_move(dev, 0, 90, 88);
|
||||
litest_assert_empty_queue(li);
|
||||
litest_restore_log_handler(li);
|
||||
|
||||
litest_touch_move_to(dev, 0, 90, 80, 91, 81, 10, 0);
|
||||
litest_touch_move_to(dev, 0, 90, 88, 91, 89, 10, 0);
|
||||
litest_touch_up(dev, 0);
|
||||
|
||||
/* expect lots of little events, no big jump */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue