[at-spi2-core: 16/17] Test GetChildren for an empty registry
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 16/17] Test GetChildren for an empty registry
- Date: Wed, 12 Oct 2022 00:58:51 +0000 (UTC)
commit 8ce42e9f37b1c9f60c7ae4d95c7f51b51a7dacf2
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Oct 11 19:19:10 2022 -0500
Test GetChildren for an empty registry
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 8a4d5dea..930ecd11 100644
--- a/tests/registryd/test_root_accessible.py
+++ b/tests/registryd/test_root_accessible.py
@@ -32,6 +32,9 @@ def test_get_child_at_index_for_empty_registry(registry_root, session_manager):
(name, path) = registry_root.GetChildAtIndex(0, dbus_interface=ACCESSIBLE_IFACE)
assert path == '/org/a11y/atspi/null'
+def test_get_children_for_empty_registry(registry_root, session_manager):
+ assert len(registry_root.GetChildren(dbus_interface=ACCESSIBLE_IFACE)) == 0
+
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]