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

Side by Side Diff: LayoutTests/fast/xpath/position.html

Issue 48903019: Delete js-test-post.js. (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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.js"></script>
5 <script src="xpath-test-pre.js"></script> 5 <script src="xpath-test-pre.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>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 result = document.evaluate("(preceding::span)[1]", CHILD23, null, XPathResul t.ORDERED_NODE_SNAPSHOT_TYPE, null); 72 result = document.evaluate("(preceding::span)[1]", CHILD23, null, XPathResul t.ORDERED_NODE_SNAPSHOT_TYPE, null);
73 checkSnapshot("(preceding::span)[1]", result, [CHILD21]); 73 checkSnapshot("(preceding::span)[1]", result, [CHILD21]);
74 74
75 var ROOT2 = document.createElement('div'); 75 var ROOT2 = document.createElement('div');
76 ROOT2.innerHTML = '<p num="1"></p><p num="2" type="warning"></p><p num="3" type= "warning"></p><p num="4" type="warning"></p><p num="5" type="warning"></p><p num ="6" type="warning"></p>'; 76 ROOT2.innerHTML = '<p num="1"></p><p num="2" type="warning"></p><p num="3" type= "warning"></p><p num="4" type="warning"></p><p num="5" type="warning"></p><p num ="6" type="warning"></p>';
77 77
78 shouldBe("document.evaluate('p[@type=\"warning\"][5]/@num', ROOT2, null, XPa thResult.STRING_TYPE, null).stringValue", "'6'"); 78 shouldBe("document.evaluate('p[@type=\"warning\"][5]/@num', ROOT2, null, XPa thResult.STRING_TYPE, null).stringValue", "'6'");
79 shouldBe("document.evaluate('p[5][@type=\"warning\"]/@num', ROOT2, null, XPa thResult.STRING_TYPE, null).stringValue", "'5'"); 79 shouldBe("document.evaluate('p[5][@type=\"warning\"]/@num', ROOT2, null, XPa thResult.STRING_TYPE, null).stringValue", "'5'");
80 80
81 </script> 81 </script>
82 <script src="../js/resources/js-test-post.js"></script>
83 </body> 82 </body>
84 </html> 83 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/xpath/null-namespace-in-html.html ('k') | LayoutTests/fast/xpath/py-dom-xpath/abbreviations.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698