test: fix the lowres-only wheel event tests
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 7 Jun 2022 01:56:04 +0000 (11:56 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 7 Jun 2022 02:42:50 +0000 (12:42 +1000)
commit164227d193e3ef986fc3b5449e2ef0662684f639
treedfc2ad97b641cf76ebbf19383c11af6462376ad7
parent92233df57b07c4bbc95ec4f5ed9ce5cc896eabce
test: fix the lowres-only wheel event tests

These tests gave us false positives for devices without a REL_WHEEL or
REL_HWHEEL because one of the helper functions papered over missing
events.

We have two tests here, one for horizontal, one for vertical but they
mixed WHEEL and HWHEEL in both tests. Fix this by splitting them
properly, so each test only checks that axis.

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