summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-09-04 10:40:04 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-09-06 09:26:00 +1000
commitf0f632649066c4fc92ec3178b9da747758cb7bb8 (patch)
tree5c753734f032a29eb2ecb66c791ac6b072e9fbbc /test
parentd9a729e1a77335d72296f7e44dc906b70e801ac8 (diff)
downloadlibinput-f0f632649066c4fc92ec3178b9da747758cb7bb8.tar.gz
evdev: move lid code to the fallback interface
This was originally designed to deal with devices that only have SW_LID. But it can be moved into the evdev interface to avoid duplication once we have SW_TABLET_MODE. The original assumption of the lid switch device being a standalone device with no other switches is not true, having a separate dispatch hurts us here. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r--test/test-switch.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test-switch.c b/test/test-switch.c
index 45efeb02..045f226e 100644
--- a/test/test-switch.c
+++ b/test/test-switch.c
@@ -604,10 +604,8 @@ START_TEST(lid_key_press)
litest_keyboard_key(sw, KEY_POWER, false);
libinput_dispatch(li);
- /* We should route the key events correctly, but for now we just
- * ignore them. This test will fail once the key events are handled
- * correctly. */
- litest_assert_empty_queue(li);
+ /* Check that we're routing key events from a lid device too */
+ litest_assert_only_typed_events(li, LIBINPUT_EVENT_KEYBOARD_KEY);
}
END_TEST