1 Test TreeWalker with rejection 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 'B2' 10 PASS walker.nextNode(); walker.currentNode.id is 'B3' 11 12 Testing firstChild 13 PASS walker.firstChild(); walker.currentNode.id is 'A1' 14 PASS walker.firstChild(); walker.currentNode.id is 'B2' 15 16 Testing nextSibling 17 PASS walker.firstChild(); walker.currentNode.id is 'A1' 18 PASS walker.firstChild(); walker.currentNode.id is 'B1' 19 PASS walker.nextSibling(); walker.currentNode.id is 'B3' 20 21 Testing parentNode 22 PASS walker.parentNode(); walker.currentNode.id is 'A1' 23 24 Testing previousSibling 25 PASS walker.previousSibling(); walker.currentNode.id is 'B1' 26 27 Testing previousNode 28 PASS walker.previousNode(); walker.currentNode.id is 'B2' 29 PASS walker.previousNode(); walker.currentNode.id is 'A1' 30 PASS successfullyParsed is true 31 32 TEST COMPLETE 33 34