Lines Matching refs:walker
3 var walker;
26 walker = document.createTreeWalker(testElement, NodeFilter.SHOW_ELEMENT, skipB1Filter, false);
27 shouldBe("walker.nextNode(); walker.currentNode.id", "'A1'");
28 shouldBe("walker.nextNode(); walker.currentNode.id", "'C1'");
29 shouldBe("walker.nextNode(); walker.currentNode.id", "'B2'");
30 shouldBe("walker.nextNode(); walker.currentNode.id", "'B3'");
33 walker = document.createTreeWalker(testElement, NodeFilter.SHOW_ELEMENT, skipB1Filter, false);
34 shouldBe("walker.firstChild(); walker.currentNode.id", "'A1'");
35 shouldBe("walker.firstChild(); walker.currentNode.id", "'C1'");
38 walker = document.createTreeWalker(testElement, NodeFilter.SHOW_ELEMENT, skipB2Filter, false);
39 shouldBe("walker.firstChild(); walker.currentNode.id", "'A1'");
40 shouldBe("walker.firstChild(); walker.currentNode.id", "'B1'");
41 shouldBe("walker.nextSibling(); walker.currentNode.id", "'B3'");
44 walker = document.createTreeWalker(testElement, NodeFilter.SHOW_ELEMENT, skipB1Filter, false);
45 walker.currentNode = testElement.querySelectorAll('#C1')[0];
46 shouldBe("walker.parentNode(); walker.currentNode.id", "'A1'");
49 walker = document.createTreeWalker(testElement, NodeFilter.SHOW_ELEMENT, skipB2Filter, false);
50 walker.currentNode = testElement.querySelectorAll('#B3')[0];
51 shouldBe("walker.previousSibling(); walker.currentNode.id", "'B1'");
54 walker = document.createTreeWalker(testElement, NodeFilter.SHOW_ELEMENT, skipB1Filter, false);
55 walker.currentNode = testElement.querySelectorAll('#B3')[0];
56 shouldBe("walker.previousNode(); walker.currentNode.id", "'B2'");
57 shouldBe("walker.previousNode(); walker.currentNode.id", "'C1'");
58 shouldBe("walker.previousNode(); walker.currentNode.id", "'A1'");