Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / traversal / node-iterator-001.html
blobc77b2638f35fd5c5007786a8217525011643902b
1 <html>
2 <head>
3 <script src=traversal.js language="JavaScript" type="text/JavaScript" ></script>
4 <title>Traversal Test</title>
5 </head>
6 <body>
7 <div id="test">
8 <span id="A"></span><span id="B"></span><span id="C"></span><span id="D"></span><span id="E"></span><span id="F"></span><span id="G"></span><span id="H"></span><span id="I"></span>
9 </div>
10 <div style="font-family: Courier; font-size: 14;">
11 <script>
12 if (window.testRunner)
13 testRunner.dumpAsText();
15 var root = document.getElementById('test');
17 function testNodeFiter(n)
19 if (n.tagName == 'SPAN') return NodeFilter.FILTER_ACCEPT;
20 return NodeFilter.FILTER_SKIP;
23 var it = document.createNodeIterator(root, NodeFilter.SHOW_ELEMENT, testNodeFiter, false);
24 document.write(dumpNodeIterator(it, "ref node root; pointer after"));
25 it.nextNode();
26 document.write(dumpNodeIterator(it, "ref node 'A'; pointer after"));
27 it.previousNode();
28 document.write(dumpNodeIterator(it, "ref node 'A'; pointer before"));
29 it.previousNode();
30 document.write(dumpNodeIterator(it, "ref node 'A'; pointer before"));
31 </script>
32 </div>
33 </body>
34 </html>