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

Side by Side Diff: LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex.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 <select id="test" size="3"> 1 <select id="test" size="3">
2 </select> 2 </select>
3 <div id="console"></div> 3 <div id="console"></div>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script> 5 <script>
6 function reset(mySelect) { 6 function reset(mySelect) {
7 mySelect.length = 0; 7 mySelect.length = 0;
8 mySelect.options[mySelect.length] = new Option("one", "value", true, true); 8 mySelect.options[mySelect.length] = new Option("one", "value", true, true);
9 mySelect.options[mySelect.length] = new Option("two", "value", true, true); 9 mySelect.options[mySelect.length] = new Option("two", "value", true, true);
10 } 10 }
11 11
12 var mySelect = document.getElementById("test"); 12 var mySelect = document.getElementById("test");
13 reset(mySelect); 13 reset(mySelect);
14 var i = 0; 14 var i = 0;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 shouldBe("mySelect.options.length", "10"); 132 shouldBe("mySelect.options.length", "10");
133 shouldBe("mySelect.selectedIndex", "-1"); 133 shouldBe("mySelect.selectedIndex", "-1");
134 134
135 debug((++i) + ") trying to set a option element using an invalid index: positive infinity"); 135 debug((++i) + ") trying to set a option element using an invalid index: positive infinity");
136 mySelect.options[1/0] = document.createElement("option"); 136 mySelect.options[1/0] = document.createElement("option");
137 shouldBe("mySelect.options.length", "10"); 137 shouldBe("mySelect.options.length", "10");
138 shouldBe("mySelect.selectedIndex", "-1"); 138 shouldBe("mySelect.selectedIndex", "-1");
139 139
140 debug(""); 140 debug("");
141 </script> 141 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698