[at-spi2-core: 11/17] Test GetState




commit af315922ad365ac0bf9ac8376bb338e3d5ef7c73
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Oct 11 19:01:41 2022 -0500

    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...?

 tests/registryd/test_root_accessible.py | 3 +++
 1 file changed, 3 insertions(+)
---
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]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]