diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-11 21:02:43 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-11 21:02:43 (GMT) |
commit | ee6d63c0a577b398cccdd851604317828afbe88f (patch) | |
tree | 9f46b99c64aafd5f396eed40b9d2818a8b9924e2 /tests/tree.py | |
parent | bccf1585d8f1187fcf7462aea0033749ddf2c935 (diff) |
Fix node/accessible mismatch
Diffstat (limited to 'tests/tree.py')
-rw-r--r-- | tests/tree.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tree.py b/tests/tree.py index 5458794..9b43bf0 100644 --- a/tests/tree.py +++ b/tests/tree.py @@ -66,18 +66,18 @@ class Node: return [Node(accessible) for accessible in all_accessibles] - def _dump_accessible(self, accessible, depth): - print "" * depth + str(accessible) + def _dump_accessible(self, node, depth): + print "" * depth + str(node._accessible) - def _crawl_accessible(self, accessible, depth): - self._dump_accessible(accessible, depth) + def _crawl_accessible(self, node, depth): + self._dump_accessible(node, depth) node = Node(accessible) for child in node._find_children_internal(): self._crawl_accessible(child, depth + 1) def dump(self): - self._crawl_accessible(self._accessible, 0) + self._crawl_accessible(self, 0) def do_action(self, name): action = self._accessible.queryAction() |