mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-07 06:30:15 +01:00
test: set the minimum bits for our test devices
size is required for phys devices and in the future libei will reject devices with no useful capabilities.
This commit is contained in:
parent
866a754223
commit
e93ad6925c
1 changed files with 4 additions and 0 deletions
|
|
@ -111,6 +111,8 @@ MUNIT_TEST(test_passive_ei_device_type)
|
|||
|
||||
eis_device_configure_type(phys, EIS_DEVICE_TYPE_PHYSICAL);
|
||||
munit_assert_int(eis_device_get_type(phys), ==, EIS_DEVICE_TYPE_PHYSICAL);
|
||||
eis_device_configure_capability(phys, EIS_DEVICE_CAP_POINTER);
|
||||
eis_device_configure_size(phys, 100, 100);
|
||||
eis_device_add(phys);
|
||||
|
||||
/* noop after add */
|
||||
|
|
@ -118,6 +120,7 @@ MUNIT_TEST(test_passive_ei_device_type)
|
|||
|
||||
_unref_(eis_device) *virt = eis_seat_new_device(seat);
|
||||
eis_device_configure_type(virt, EIS_DEVICE_TYPE_VIRTUAL);
|
||||
eis_device_configure_capability(virt, EIS_DEVICE_CAP_POINTER);
|
||||
munit_assert_int(eis_device_get_type(virt), ==, EIS_DEVICE_TYPE_VIRTUAL);
|
||||
eis_device_add(virt);
|
||||
|
||||
|
|
@ -157,6 +160,7 @@ MUNIT_TEST(test_ei_device_set_name_multiple_devices)
|
|||
|
||||
_unref_(eis_device) *d2 = eis_seat_new_device(seat);
|
||||
/* Unnamed */
|
||||
eis_device_configure_capability(d2, EIS_DEVICE_CAP_POINTER);
|
||||
eis_device_add(d2);
|
||||
|
||||
_unref_(eis_device) *d3 = eis_seat_new_device(seat);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue