diff options
author | Federico Mena Quintero <federico@gnome.org> | 2022-09-01 17:49:09 -0500 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2022-10-11 18:36:14 -0500 |
commit | 6525e8f8a49c8ee88181da3f2668310395bb2529 (patch) | |
tree | e3c649ba47a39cb238116504654531aea5fef520 /tests/registryd | |
parent | cb203394cae381d4cfea75634b53a4f196647f9d (diff) | |
download | at-spi2-core-6525e8f8a49c8ee88181da3f2668310395bb2529.tar.gz |
registryd: Add test for GetInterfaces, and add missing ifaces to the method's implementation
The registry's root object also handles the Application and Socket
interfaces, but they were not advertised by its Accessible.GetInterfaces method.
Diffstat (limited to 'tests/registryd')
-rw-r--r-- | tests/registryd/test_root_accessible.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/registryd/test_root_accessible.py b/tests/registryd/test_root_accessible.py index 8a6199a2..bfa70cea 100644 --- a/tests/registryd/test_root_accessible.py +++ b/tests/registryd/test_root_accessible.py @@ -24,3 +24,11 @@ def test_accessible_iface_properties(registry_root, session_manager): def test_unknown_property_yields_error(registry_root, session_manager): check_unknown_property_yields_error(registry_root, ACCESSIBLE_IFACE) + +def test_root_get_interfaces(registry_root, session_manager): + ifaces = registry_root.GetInterfaces(dbus_interface=ACCESSIBLE_IFACE) + assert ifaces.signature == 's' + assert 'org.a11y.atspi.Accessible' in ifaces + assert 'org.a11y.atspi.Application' in ifaces + assert 'org.a11y.atspi.Component' in ifaces + assert 'org.a11y.atspi.Socket' in ifaces |