test: push/pop event frames around three-touch movements

Without this, each finger movement happens in a different evdev event frame.
Since we average deltas for gestures, this messes with the expected data.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2021-03-15 17:08:55 +10:00
parent dee0e5e725
commit 1d9cdf76a5

View file

@ -2580,9 +2580,11 @@ litest_touch_move_three_touches(struct litest_device *d,
double step_x = dx / steps * i;
double step_y = dy / steps * i;
litest_push_event_frame(d);
litest_touch_move(d, 0, x0 + step_x, y0 + step_y);
litest_touch_move(d, 1, x1 + step_x, y1 + step_y);
litest_touch_move(d, 2, x2 + step_x, y2 + step_y);
litest_pop_event_frame(d);
libinput_dispatch(d->libinput);
msleep(sleep_ms);