TreeWalker-currentNode-expected.txt revision eff69b907ef2cd3a9af0351287a929c66f58e3f6
1Tests the TreeWalker.
2
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6Test that TreeWalker.parent() doesn't set the currentNode to a node not under the root.
7
8PASS w.currentNode is subTree
9PASS w.parentNode() is null
10PASS w.currentNode is subTree
11
12Test that we handle setting the currentNode to arbitrary nodes not under the root element.
13
14PASS w.parentNode() is null
15PASS w.currentNode is document.documentElement
16PASS w.nextNode() is document.documentElement.firstChild
17PASS w.currentNode is document.documentElement.firstChild
18PASS w.previousNode() is null
19PASS w.currentNode is document.documentElement
20PASS w.firstChild() is document.documentElement.firstChild
21PASS w.currentNode is document.documentElement.firstChild
22PASS w.lastChild() is document.documentElement.lastChild
23PASS w.currentNode is document.documentElement.lastChild
24PASS w.nextSibling() is null
25PASS w.currentNode is document.documentElement
26PASS w.previousSibling() is null
27PASS w.currentNode is document.documentElement
28
29Test how we handle the case when the traversed to node within the root, but the currentElement is not.
30
31PASS w.nextNode() is subTree
32PASS w.lastChild() is subTree
33PASS successfullyParsed is true
34
35TEST COMPLETE
36
37