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

Side by Side Diff: LayoutTests/fast/xpath/xpath-template-element.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
« no previous file with comments | « LayoutTests/fast/xpath/xpath-namespaces.html ('k') | LayoutTests/gamepad/gamepad-api.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p>This tests that XPath expressions do not consider (traverse into) template co ntent</p> 7 <p>This tests that XPath expressions do not consider (traverse into) template co ntent</p>
8 8
9 <div id=test> 9 <div id=test>
10 <span>A</span> 10 <span>A</span>
11 <span>B</span> 11 <span>B</span>
12 <template> 12 <template>
13 <span>C</span> 13 <span>C</span>
14 <span>D</span> 14 <span>D</span>
15 </template> 15 </template>
16 </div> 16 </div>
17 17
18 <div id="console"></div> 18 <div id="console"></div>
19 <script> 19 <script>
20 var test = document.getElementById('test'); 20 var test = document.getElementById('test');
21 var result = document.evaluate('count(//span)', test, null, XPathResult.NUMBER_T YPE, null); 21 var result = document.evaluate('count(//span)', test, null, XPathResult.NUMBER_T YPE, null);
22 shouldBe("document.evaluate('count(//span)', test, null, XPathResult.NUMBER_TYPE , null).numberValue", "2"); 22 shouldBe("document.evaluate('count(//span)', test, null, XPathResult.NUMBER_TYPE , null).numberValue", "2");
23 </script> 23 </script>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/xpath/xpath-namespaces.html ('k') | LayoutTests/gamepad/gamepad-api.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698