diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-11-14 08:44:47 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-11-20 09:55:05 +1000 |
commit | 8cf6893f6dc3e0e4ecc029c49ce5ceb1887a30d4 (patch) | |
tree | 35015ef2e0c2a4a5e082efa0054fcc6ee4149bb6 /test/test-device.c | |
parent | eb048529b52aed94ba5ab307222aa91a82542f82 (diff) | |
download | libinput-8cf6893f6dc3e0e4ecc029c49ce5ceb1887a30d4.tar.gz |
test: replace litest_button_click with a debounced version
This is via a simple search & replace. Later auditing is needed to switch
clicks that should not be debounced (e.g. touchpads) back to a non-debounced
version.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/test-device.c')
-rw-r--r-- | test/test-device.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test-device.c b/test/test-device.c index c4dfdd47..7c39131f 100644 --- a/test/test-device.c +++ b/test/test-device.c @@ -463,7 +463,7 @@ START_TEST(device_disable_release_buttons) device = dev->libinput_device; - litest_button_click(dev, BTN_LEFT, true); + litest_button_click_debounced(dev, li, BTN_LEFT, true); litest_drain_events(li); status = libinput_device_config_send_events_set_mode(device, @@ -497,7 +497,7 @@ START_TEST(device_disable_release_keys) device = dev->libinput_device; - litest_button_click(dev, KEY_A, true); + litest_button_click_debounced(dev, li, KEY_A, true); litest_drain_events(li); status = libinput_device_config_send_events_set_mode(device, @@ -616,7 +616,7 @@ START_TEST(device_disable_release_softbutton) litest_drain_events(li); litest_touch_down(dev, 0, 90, 90); - litest_button_click(dev, BTN_LEFT, true); + litest_button_click_debounced(dev, li, BTN_LEFT, true); /* make sure softbutton works */ litest_assert_button_event(li, @@ -633,7 +633,7 @@ START_TEST(device_disable_release_softbutton) litest_assert_empty_queue(li); - litest_button_click(dev, BTN_LEFT, false); + litest_button_click_debounced(dev, li, BTN_LEFT, false); litest_touch_up(dev, 0); litest_assert_empty_queue(li); @@ -669,8 +669,8 @@ START_TEST(device_disable_topsoftbutton) litest_drain_events(li); litest_touch_down(dev, 0, 90, 10); - litest_button_click(dev, BTN_LEFT, true); - litest_button_click(dev, BTN_LEFT, false); + litest_button_click_debounced(dev, li, BTN_LEFT, true); + litest_button_click_debounced(dev, li, BTN_LEFT, false); litest_touch_up(dev, 0); litest_wait_for_event(li); |