Lines Matching refs:walker
3 var walker;
26 walker = document.createTreeWalker(testElement, NodeFilter.SHOW_ELEMENT, rejectB1Filter, false);
27 shouldBe("walker.nextNode(); walker.currentNode.id", "'A1'");
28 shouldBe("walker.nextNode(); walker.currentNode.id", "'B2'");
29 shouldBe("walker.nextNode(); walker.currentNode.id", "'B3'");
32 walker = document.createTreeWalker(testElement, NodeFilter.SHOW_ELEMENT, rejectB1Filter, false);
33 shouldBe("walker.firstChild(); walker.currentNode.id", "'A1'");
34 shouldBe("walker.firstChild(); walker.currentNode.id", "'B2'");
37 walker = document.createTreeWalker(testElement, NodeFilter.SHOW_ELEMENT, rejectB2Filter, false);
38 shouldBe("walker.firstChild(); walker.currentNode.id", "'A1'");
39 shouldBe("walker.firstChild(); walker.currentNode.id", "'B1'");
40 shouldBe("walker.nextSibling(); walker.currentNode.id", "'B3'");
43 walker = document.createTreeWalker(testElement, NodeFilter.SHOW_ELEMENT, rejectB1Filter, false);
44 walker.currentNode = testElement.querySelectorAll('#C1')[0];
45 shouldBe("walker.parentNode(); walker.currentNode.id", "'A1'");
48 walker = document.createTreeWalker(testElement, NodeFilter.SHOW_ELEMENT, rejectB2Filter, false);
49 walker.currentNode = testElement.querySelectorAll('#B3')[0];
50 shouldBe("walker.previousSibling(); walker.currentNode.id", "'B1'");
53 walker = document.createTreeWalker(testElement, NodeFilter.SHOW_ELEMENT, rejectB1Filter, false);
54 walker.currentNode = testElement.querySelectorAll('#B3')[0];
55 shouldBe("walker.previousNode(); walker.currentNode.id", "'B2'");
56 shouldBe("walker.previousNode(); walker.currentNode.id", "'A1'");