1 Test TreeWalker with skipping 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6 7 Testing nextNode 8 PASS walker.nextNode(); walker.currentNode.id is 'A1' 9 PASS walker.nextNode(); walker.currentNode.id is 'C1' 10 PASS walker.nextNode(); walker.currentNode.id is 'B2' 11 PASS walker.nextNode(); walker.currentNode.id is 'B3' 12 13 Testing firstChild 14 PASS walker.firstChild(); walker.currentNode.id is 'A1' 15 PASS walker.firstChild(); walker.currentNode.id is 'C1' 16 17 Testing nextSibling 18 PASS walker.firstChild(); walker.currentNode.id is 'A1' 19 PASS walker.firstChild(); walker.currentNode.id is 'B1' 20 PASS walker.nextSibling(); walker.currentNode.id is 'B3' 21 22 Testing parentNode 23 PASS walker.parentNode(); walker.currentNode.id is 'A1' 24 25 Testing previousSibling 26 PASS walker.previousSibling(); walker.currentNode.id is 'B1' 27 28 Testing previousNode 29 PASS walker.previousNode(); walker.currentNode.id is 'B2' 30 PASS walker.previousNode(); walker.currentNode.id is 'C1' 31 PASS walker.previousNode(); walker.currentNode.id is 'A1' 32 PASS successfullyParsed is true 33 34 TEST COMPLETE 35 36