[at-spi2-core: 6/17] Test GetIndexInParent




commit e3a5ad42739bff5fe39369813a0636f0d8f28519
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Oct 11 18:49:34 2022 -0500

    Test GetIndexInParent

 tests/registryd/test_root_accessible.py | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/tests/registryd/test_root_accessible.py b/tests/registryd/test_root_accessible.py
index bfa70cea..a9ff55e1 100644
--- a/tests/registryd/test_root_accessible.py
+++ b/tests/registryd/test_root_accessible.py
@@ -32,3 +32,7 @@ def test_root_get_interfaces(registry_root, session_manager):
     assert 'org.a11y.atspi.Application' in ifaces
     assert 'org.a11y.atspi.Component' in ifaces
     assert 'org.a11y.atspi.Socket' in ifaces
+
+def test_root_get_index_in_parent(registry_root, session_manager):
+    # The registry root is always index 0
+    assert registry_root.GetIndexInParent(dbus_interface=ACCESSIBLE_IFACE) == 0


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