test: simplify the helper for moving three touches at the same time
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 15 Mar 2021 06:56:23 +0000 (16:56 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 16 Mar 2021 21:29:56 +0000 (21:29 +0000)
commitdee0e5e72597d2535f43d43cbeb8364fd5afffd1
tree2321335694a5d2a44adc0581917d95106f2d6c62
parent5129d178b31fb83c5c9b2e0f2b9e3c6d9fd29274
test: simplify the helper for moving three touches at the same time

There's no test case where we need to do something immediately after the last
event so we might as well do everything in the same loop.

This also fixes a bug where the first movement would usually get swallowed.
Test cases in general put the finger down at x/y, then move them to some other
position. We'd expect the first event in a loop to happen at x+n/y+n, not at
x/y again.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c