1 Test JS objects as NodeFilters. 2 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 5 6 Testing with object filter 7 Test with filter function 8 PASS walker.firstChild(); threw exception filter exception. 9 PASS walker.currentNode.id is 'root' 10 PASS walker.nextNode();walker.currentNode.id threw exception filter exception. 11 PASS walker.currentNode.id is 'root' 12 13 Test with filter object 14 PASS walker.firstChild(); threw exception filter exception. 15 PASS walker.currentNode.id is 'root' 16 PASS walker.nextNode();walker.currentNode.id threw exception filter exception. 17 PASS walker.currentNode.id is 'root' 18 PASS successfullyParsed is true 19 20 TEST COMPLETE 21 22