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

Side by Side Diff: LayoutTests/fast/dom/HTMLSelectElement/select-selectedOptions.html

Issue 48903019: Delete js-test-post.js. (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 <select id="test" size="3" multiple="multiple"> 2 <select id="test" size="3" multiple="multiple">
3 </select> 3 </select>
4 <div id="console"></div> 4 <div id="console"></div>
5 <script src="../../js/resources/js-test-pre.js"></script> 5 <script src="../../js/resources/js-test-pre.js"></script>
6 <script> 6 <script>
7 function reset(mySelect) { 7 function reset(mySelect) {
8 mySelect.length = 0; 8 mySelect.length = 0;
9 mySelect.multiple = true; 9 mySelect.multiple = true;
10 mySelect.options[mySelect.length] = new Option("one", "value", false); 10 mySelect.options[mySelect.length] = new Option("one", "value", false);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 mySelect.options[1].selected = true; 119 mySelect.options[1].selected = true;
120 optionsLength = mySelect.options.length; 120 optionsLength = mySelect.options.length;
121 selectedOptions = deepCopy(mySelect.selectedOptions); 121 selectedOptions = deepCopy(mySelect.selectedOptions);
122 shouldBe("optionsLength", "2"); 122 shouldBe("optionsLength", "2");
123 shouldBe("selectedOptions.length", "2"); 123 shouldBe("selectedOptions.length", "2");
124 shouldBe("selectedOptions[0].text", "'one'"); 124 shouldBe("selectedOptions[0].text", "'one'");
125 shouldBe("selectedOptions[1].text", "'two'"); 125 shouldBe("selectedOptions[1].text", "'two'");
126 126
127 debug(""); 127 debug("");
128 </script> 128 </script>
129 <script src="../../js/resources/js-test-post.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698