summaryrefslogtreecommitdiff
path: root/tests/registryd
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2022-10-11 19:01:41 -0500
committerFederico Mena Quintero <federico@gnome.org>2022-10-11 19:01:41 -0500
commitaf315922ad365ac0bf9ac8376bb338e3d5ef7c73 (patch)
tree76ca8c0ad234aefbe895dcaa051e3ee5a403165b /tests/registryd
parent742d7d66323efec8156c785b8502341902f5e75f (diff)
downloadat-spi2-core-af315922ad365ac0bf9ac8376bb338e3d5ef7c73.tar.gz
Test GetState
Why is this returning an array with [0, 0] instead of just an empty array? The 0 is ATSPI_STATE_INVALID, but having two of those in the result...?
Diffstat (limited to 'tests/registryd')
-rw-r--r--tests/registryd/test_root_accessible.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/registryd/test_root_accessible.py b/tests/registryd/test_root_accessible.py
index b73e3709..93ad1158 100644
--- a/tests/registryd/test_root_accessible.py
+++ b/tests/registryd/test_root_accessible.py
@@ -53,3 +53,6 @@ def test_root_get_role_name(registry_root, session_manager):
def test_root_get_localized_role_name(registry_root, session_manager):
# FIXME: see the corresponding FIXME in registry.c, to actually localize this
assert registry_root.GetLocalizedRoleName(dbus_interface=ACCESSIBLE_IFACE) == "desktop frame"
+
+def test_root_get_state(registry_root, session_manager):
+ assert registry_root.GetState(dbus_interface=ACCESSIBLE_IFACE) == [0, 0]