Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: LayoutTests/traversal/hixie-node-iterator/010.xml

Issue 739433003: Remove CDATASection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/traversal/hixie-node-iterator/002.xml ('k') | Source/core/core.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head> 2 <head>
3 <title>DOM Traversal: NodeIterator: Filters</title> 3 <title>DOM Traversal: NodeIterator: Filters</title>
4 <script type="text/javascript"> <![CDATA[ 4 <script type="text/javascript"> <![CDATA[
5 function doTest() { 5 function doTest() {
6 if (window.testRunner) testRunner.dumpAsText(); 6 if (window.testRunner) testRunner.dumpAsText();
7 var iterator = document.createNodeIterator(document, NodeFilter.SHOW_ALL, testFilter, false); 7 var iterator = document.createNodeIterator(document, NodeFilter.SHOW_ALL, testFilter, false);
8 // skips text nodes and body element 8 // skips text nodes and body element
9 var expected = new Array(9, // document 9 var expected = new Array(9, // document
10 1, // html 10 1, // html
11 1, // head 11 1, // head
12 1, // title 12 1, // title
13 1, 4, // script and CDATA block 13 1, // script
14 // body (skipped) 14 // body (skipped)
15 1, // pre 15 1, // pre
16 // </body> 16 // </body>
17 8, // <!-- --> 17 8); // <!-- -->
18 // PI skipped 18 // PI skipped
19 4); // CDATA
20 var found = new Array(); 19 var found = new Array();
21 20
22 // walk document 21 // walk document
23 var node; 22 var node;
24 while (node = iterator.nextNode()) 23 while (node = iterator.nextNode())
25 found.push(node.nodeType); 24 found.push(node.nodeType);
26 25
27 // check results 26 // check results
28 var errors = 0; 27 var errors = 0;
29 var s = ''; 28 var s = '';
(...skipping 24 matching lines...) Expand all
54 return 1; // FILTER_ACCEPT 53 return 1; // FILTER_ACCEPT
55 } 54 }
56 55
57 ]]></script> 56 ]]></script>
58 </head> 57 </head>
59 <body onload="doTest()"> 58 <body onload="doTest()">
60 <pre id="result">FAIL: Script failed to run.</pre> 59 <pre id="result">FAIL: Script failed to run.</pre>
61 </body> 60 </body>
62 <!-- some more nodes to test this: --> 61 <!-- some more nodes to test this: -->
63 <?body test?> 62 <?body test?>
64 <![CDATA[ ]]> 63 </html>
65 </html>
OLDNEW
« no previous file with comments | « LayoutTests/traversal/hixie-node-iterator/002.xml ('k') | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698