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

Side by Side Diff: LayoutTests/fast/dom/NodeList/nodelist-reachable.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <body> 2 <body>
3 <form> 3 <form>
4 <input name="radios" type="radio"> 4 <input name="radios" type="radio">
5 <input name="radios" type="radio"> 5 <input name="radios" type="radio">
6 </form> 6 </form>
7 <script src="../../js/resources/js-test-pre.js"></script> 7 <script src="../../../resources/js-test.js"></script>
8 <script> 8 <script>
9 9
10 var nodeListKind = { 10 var nodeListKind = {
11 ChildNodeListType: 'document.body.childNodes', 11 ChildNodeListType: 'document.body.childNodes',
12 ClassNodeListType: 'document.getElementsByClassName("class")', 12 ClassNodeListType: 'document.getElementsByClassName("class")',
13 NameNodeListType: 'document.getElementsByName("name")', 13 NameNodeListType: 'document.getElementsByName("name")',
14 TagNodeListType: 'document.getElementsByTagName("body")', 14 TagNodeListType: 'document.getElementsByTagName("body")',
15 RadioNodeListType: 'document.querySelector("form").elements["radios"]', 15 RadioNodeListType: 'document.querySelector("form").elements["radios"]',
16 LabelsNodeListType: 'document.querySelector("input").labels', 16 LabelsNodeListType: 'document.querySelector("input").labels',
17 }; 17 };
18 18
19 var i = 1; 19 var i = 1;
20 for (var kind in nodeListKind) { 20 for (var kind in nodeListKind) {
21 var code = nodeListKind[kind]; 21 var code = nodeListKind[kind];
22 eval(code).customProperty = i; 22 eval(code).customProperty = i;
23 gc(); 23 gc();
24 shouldBe(code + '.customProperty', '' + i++); 24 shouldBe(code + '.customProperty', '' + i++);
25 } 25 }
26 26
27 </script> 27 </script>
28 </body> 28 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698