summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-03-11 15:51:47 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-03-11 16:32:59 +1000
commit31d20acdf622375401993701bd274306b4da3296 (patch)
tree6c30c3a4cd0c183741be36f5666a98ac413cdb36
parent39b64107e9270ef7335e2febb4f8ec9ce7133402 (diff)
downloadlibinput-31d20acdf622375401993701bd274306b4da3296.tar.gz
test: fix two inadvertent pointer jumps in a test
Got papered over by bugs in the implementation and didn't trigger the jump detection or movement detection otherwise. Related to #578 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--test/test-touchpad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-touchpad.c b/test/test-touchpad.c
index 8691f805..5604aedd 100644
--- a/test/test-touchpad.c
+++ b/test/test-touchpad.c
@@ -5183,7 +5183,7 @@ START_TEST(touchpad_thumb_speed_empty_slots)
libinput_dispatch(li);
for (int i = 0, y = 50; i < 10; i++, y++) {
litest_touch_move_to(dev, 1, 50, y, 50, y + 1, 1);
- litest_touch_move_to(dev, 2, 55, y, 50, y + 1, 1);
+ litest_touch_move_to(dev, 2, 55, y, 55, y + 1, 1);
}
libinput_dispatch(li);
litest_touch_up(dev, 1);
@@ -5983,7 +5983,7 @@ START_TEST(touchpad_pressure_2fg)
litest_touch_down(dev, 0, 30, 50);
litest_touch_down_extended(dev, 1, 50, 50, axes);
libinput_dispatch(li);
- litest_touch_move_to(dev, 0, 50, 50, 80, 80, 10);
+ litest_touch_move_to(dev, 0, 30, 50, 80, 80, 10);
libinput_dispatch(li);
litest_assert_only_typed_events(li,
LIBINPUT_EVENT_POINTER_MOTION);