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

Side by Side Diff: LayoutTests/fast/dom/collection-length-should-not-be-overridden.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 <html> 2 <html>
3 <body> 3 <body>
4 <div id="testElements"> 4 <div id="testElements">
5 <form> 5 <form>
6 <input type="text" name="some"> 6 <input type="text" name="some">
7 <input type="text" name="length"> 7 <input type="text" name="length">
8 </form> 8 </form>
9 <form> 9 <form>
10 <select> 10 <select>
(...skipping 10 matching lines...) Expand all
21 </div> 21 </div>
22 <script> 22 <script>
23 23
24 // We need to pre-fetch these values since including the script element inserts new elements. 24 // We need to pre-fetch these values since including the script element inserts new elements.
25 documentAllLength = document.all.length; 25 documentAllLength = document.all.length;
26 documentAllSome = document.all['some']; 26 documentAllSome = document.all['some'];
27 documentAll5 = document.all[5]; 27 documentAll5 = document.all[5];
28 documentAll6 = document.all[6]; 28 documentAll6 = document.all[6];
29 29
30 </script> 30 </script>
31 <script src="../js/resources/js-test-pre.js"></script> 31 <script src="../../resources/js-test.js"></script>
32 <script> 32 <script>
33 33
34 description("This test ensures the builtin length property of HTMLCollection's s ubclasses is not overridden by a named getter of the same name."); 34 description("This test ensures the builtin length property of HTMLCollection's s ubclasses is not overridden by a named getter of the same name.");
35 35
36 var form = document.forms[0]; 36 var form = document.forms[0];
37 var select = document.querySelector('select'); 37 var select = document.querySelector('select');
38 var table = document.querySelector('table'); 38 var table = document.querySelector('table');
39 shouldBe("documentAllLength", "18"); 39 shouldBe("documentAllLength", "18");
40 shouldBe("documentAll5", "documentAllSome"); 40 shouldBe("documentAll5", "documentAllSome");
41 shouldBe("documentAll6.name", "'length'"); 41 shouldBe("documentAll6.name", "'length'");
(...skipping 11 matching lines...) Expand all
53 shouldBe("table.rows[0]", "table.rows['another']"); 53 shouldBe("table.rows[0]", "table.rows['another']");
54 shouldBe("table.rows[1].id", "'length'"); 54 shouldBe("table.rows[1].id", "'length'");
55 55
56 document.getElementById('testElements').style.display = 'none'; 56 document.getElementById('testElements').style.display = 'none';
57 57
58 var successfullyParsed = true; 58 var successfullyParsed = true;
59 59
60 </script> 60 </script>
61 </body> 61 </body>
62 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698