test: disable tapping for palm detection tests

The event sequences we use for plam detection trigger tap events if enabled by
default. Always disable tapping, a set of tests for tapping in the palm
exclusion zones. Arguably, tapping in the zones should be handled in a
separate set of tests though.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2015-03-05 12:17:14 +10:00
parent 3927b63207
commit 13afa8e5c7

View file

@ -2157,6 +2157,9 @@ START_TEST(touchpad_palm_detect_at_edge)
if (!touchpad_has_palm_detect_size(dev))
return;
libinput_device_config_tap_set_enabled(dev->libinput_device,
LIBINPUT_CONFIG_TAP_DISABLED);
litest_drain_events(li);
litest_touch_down(dev, 0, 99, 50);
@ -2179,6 +2182,9 @@ START_TEST(touchpad_palm_detect_at_bottom_corners)
if (!touchpad_has_palm_detect_size(dev))
return;
libinput_device_config_tap_set_enabled(dev->libinput_device,
LIBINPUT_CONFIG_TAP_DISABLED);
/* Run for non-clickpads only: make sure the bottom corners trigger
palm detection too */
litest_drain_events(li);
@ -2203,6 +2209,9 @@ START_TEST(touchpad_palm_detect_at_top_corners)
if (!touchpad_has_palm_detect_size(dev))
return;
libinput_device_config_tap_set_enabled(dev->libinput_device,
LIBINPUT_CONFIG_TAP_DISABLED);
/* Run for non-clickpads only: make sure the bottom corners trigger
palm detection too */
litest_drain_events(li);
@ -2227,6 +2236,9 @@ START_TEST(touchpad_palm_detect_palm_stays_palm)
if (!touchpad_has_palm_detect_size(dev))
return;
libinput_device_config_tap_set_enabled(dev->libinput_device,
LIBINPUT_CONFIG_TAP_DISABLED);
litest_drain_events(li);
litest_touch_down(dev, 0, 99, 20);
@ -2244,6 +2256,9 @@ START_TEST(touchpad_palm_detect_palm_becomes_pointer)
if (!touchpad_has_palm_detect_size(dev))
return;
libinput_device_config_tap_set_enabled(dev->libinput_device,
LIBINPUT_CONFIG_TAP_DISABLED);
litest_drain_events(li);
litest_touch_down(dev, 0, 99, 50);
@ -2266,6 +2281,9 @@ START_TEST(touchpad_palm_detect_no_palm_moving_into_edges)
if (!touchpad_has_palm_detect_size(dev))
return;
libinput_device_config_tap_set_enabled(dev->libinput_device,
LIBINPUT_CONFIG_TAP_DISABLED);
/* moving non-palm into the edge does not label it as palm */
litest_drain_events(li);