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

Side by Side Diff: LayoutTests/fast/xpath/4XPath/Borrowed/kd_20010423.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 <!-- https://sourceforge.net/tracker/?func=detail&atid=106473&aid=418317&group_i d=6473 --> 1 <!-- https://sourceforge.net/tracker/?func=detail&atid=106473&aid=418317&group_i d=6473 -->
2 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 2 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
3 <html> 3 <html>
4 <head> 4 <head>
5 <script src="../../../js/resources/js-test-pre.js"></script> 5 <script src="../../../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <div id="console"></div> 8 <div id="console"></div>
9 9
10 <script> 10 <script>
11 SRC_1 = '<?xml version="1.0" encoding="utf-8"?>\ 11 SRC_1 = '<?xml version="1.0" encoding="utf-8"?>\
12 <doc>\ 12 <doc>\
13 <elem>abc</elem>\ 13 <elem>abc</elem>\
14 <elem><![CDATA[abc]]></elem>\ 14 <elem><![CDATA[abc]]></elem>\
15 <elem>a<![CDATA[b]]>c</elem>\ 15 <elem>a<![CDATA[b]]>c</elem>\
16 </doc>'; 16 </doc>';
17 17
18 doc = (new DOMParser).parseFromString(SRC_1, "application/xml"); 18 doc = (new DOMParser).parseFromString(SRC_1, "application/xml");
19 19
20 EXPR = '/doc/elem/text()' 20 EXPR = '/doc/elem/text()'
21 nodeset = doc.evaluate(EXPR, doc, null, XPathResult.UNORDERED_NODE_ITERATOR_ TYPE, null); 21 nodeset = doc.evaluate(EXPR, doc, null, XPathResult.UNORDERED_NODE_ITERATOR_ TYPE, null);
22 actual = ""; 22 actual = "";
23 while (currNode = nodeset.iterateNext()) 23 while (currNode = nodeset.iterateNext())
24 actual += currNode.nodeValue; 24 actual += currNode.nodeValue;
25 25
26 // According to DOM XPath working group note, this should be "abcabca", but we'll rather match Firefox. 26 // According to DOM XPath working group note, this should be "abcabca", but we'll rather match Firefox.
27 // See <http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#TextNodes>. 27 // See <http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#TextNodes>.
28 shouldBe('actual', '"abcabcabc"') 28 shouldBe('actual', '"abcabcabc"')
29 29
30 </script> 30 </script>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/xpath/4XPath/Borrowed/cz_20030217.html ('k') | LayoutTests/fast/xpath/4XPath/Borrowed/od_20000608.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698