mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-30 14:10:08 +01:00
test: add a tablet tool capability check
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
4e7db651ce
commit
d9f09cec76
1 changed files with 11 additions and 0 deletions
|
|
@ -2076,6 +2076,16 @@ START_TEST(tool_delayed_serial)
|
|||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST(tool_capability)
|
||||
{
|
||||
struct litest_device *dev = litest_current_device();
|
||||
struct libinput_device *device = dev->libinput_device;
|
||||
|
||||
ck_assert(libinput_device_has_capability(device,
|
||||
LIBINPUT_DEVICE_CAP_TABLET_TOOL));
|
||||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST(tool_capabilities)
|
||||
{
|
||||
struct libinput *li = litest_create_context();
|
||||
|
|
@ -3981,6 +3991,7 @@ void
|
|||
litest_setup_tests_tablet(void)
|
||||
{
|
||||
litest_add("tablet:tool", tool_ref, LITEST_TABLET | LITEST_TOOL_SERIAL, LITEST_ANY);
|
||||
litest_add("tablet:tool", tool_capability, LITEST_TABLET, LITEST_ANY);
|
||||
litest_add_no_device("tablet:tool", tool_capabilities);
|
||||
litest_add("tablet:tool", tool_in_prox_before_start, LITEST_TABLET, LITEST_ANY);
|
||||
litest_add("tablet:tool_serial", tool_unique, LITEST_TABLET | LITEST_TOOL_SERIAL, LITEST_ANY);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue