summaryrefslogtreecommitdiff
path: root/tests/test_domain_js.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_domain_js.py')
-rw-r--r--tests/test_domain_js.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_domain_js.py b/tests/test_domain_js.py
index 42e2c9727..b109fe4d8 100644
--- a/tests/test_domain_js.py
+++ b/tests/test_domain_js.py
@@ -42,7 +42,7 @@ def test_domain_js_xrefs(app, status, warning):
assert_node(node, **attributes)
doctree = app.env.get_doctree('roles')
- refnodes = list(doctree.traverse(addnodes.pending_xref))
+ refnodes = list(doctree.findall(addnodes.pending_xref))
assert_refnode(refnodes[0], None, None, 'TopLevel', 'class')
assert_refnode(refnodes[1], None, None, 'top_level', 'func')
assert_refnode(refnodes[2], None, 'NestedParentA', 'child_1', 'func')
@@ -60,7 +60,7 @@ def test_domain_js_xrefs(app, status, warning):
assert len(refnodes) == 13
doctree = app.env.get_doctree('module')
- refnodes = list(doctree.traverse(addnodes.pending_xref))
+ refnodes = list(doctree.findall(addnodes.pending_xref))
assert_refnode(refnodes[0], 'module_a.submodule', None, 'ModTopLevel',
'class')
assert_refnode(refnodes[1], 'module_a.submodule', 'ModTopLevel',