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

Side by Side Diff: LayoutTests/fast/dom/Element/id-in-node-list-index01.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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 6
7 <div name='name1' id='id1'/> 7 <div name='name1' id='id1'/>
8 <p name='name3' id='id2'/> 8 <p name='name3' id='id2'/>
9 <div name='name2' id='id2'/> 9 <div name='name2' id='id2'/>
10 10
11 <script> 11 <script>
12 description("Test using id as index of node list"); 12 description("Test using id as index of node list");
13 13
14 var elems = document.getElementsByTagName('div'); 14 var elems = document.getElementsByTagName('div');
15 15
16 shouldBe('elems["id1"].getAttribute("name")', '"name1"'); 16 shouldBe('elems["id1"].getAttribute("name")', '"name1"');
17 shouldBe('elems["id2"].getAttribute("name")', '"name2"'); 17 shouldBe('elems["id2"].getAttribute("name")', '"name2"');
18 </script> 18 </script>
19 </body> 19 </body>
20 </html> 20 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Element/id-in-map.html ('k') | LayoutTests/fast/dom/Element/node-list-identity.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698