mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-06 09:08:05 +02:00
linux: Add test for touchpads being tagged as mice
udev adds both tags to touchpads, so replicate that behaviour.
This commit is contained in:
parent
781e856974
commit
26c90728c3
1 changed files with 2 additions and 2 deletions
|
|
@ -1370,7 +1370,7 @@ class Tests(dbusmock.DBusTestCase):
|
|||
'input',
|
||||
'/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.2/0003:046D:C52B.0009/0003:046D:4101.000A/input/input22',
|
||||
parent,
|
||||
[], ['DEVNAME', 'input/mouse3', 'ID_INPUT_TOUCHPAD', '1'])
|
||||
[], ['DEVNAME', 'input/mouse3', 'ID_INPUT_TOUCHPAD', '1', 'ID_INPUT_MOUSE', '1'])
|
||||
self.testbed.uevent(batt_dev, 'change')
|
||||
|
||||
time.sleep(0.5)
|
||||
|
|
@ -1389,7 +1389,7 @@ class Tests(dbusmock.DBusTestCase):
|
|||
'input',
|
||||
'/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.2/0003:046D:C52B.0009/0003:046D:4101.000A/input/input22',
|
||||
parent,
|
||||
[], ['DEVNAME', 'input/mouse3', 'ID_INPUT_TOUCHPAD', '1'])
|
||||
[], ['DEVNAME', 'input/mouse3', 'ID_INPUT_TOUCHPAD', '1', 'ID_INPUT_MOUSE', '1'])
|
||||
|
||||
dev = self.testbed.add_device(
|
||||
'power_supply',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue