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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/select-replace-option.html

Issue 1509853008: Move select/option/optgroup-related tests in fast/forms to fast/forms/select. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
OLDNEW
1 <head> 1 <head>
2 <script> 2 <script>
3 function test() 3 function test()
4 { 4 {
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 var select = document.getElementById('select'); 7 var select = document.getElementById('select');
8 select.options[1] = new Option("Replacement Option 1", "Replacement Option 1 "); 8 select.options[1] = new Option("Replacement Option 1", "Replacement Option 1 ");
9 var length = select.options.length; 9 var length = select.options.length;
10 for (var i = 0; i < length; ++i) { 10 for (var i = 0; i < length; ++i) {
(...skipping 13 matching lines...) Expand all
24 <p>This tests replacing an option using JavaScript. If successful, the options s hould be "Replacement Option 0", "Option 1", and "Option 2", and selected index should be 0.<form> 24 <p>This tests replacing an option using JavaScript. If successful, the options s hould be "Replacement Option 0", "Option 1", and "Option 2", and selected index should be 0.<form>
25 <form> 25 <form>
26 <select id="select"> 26 <select id="select">
27 <option>Option 0</option> 27 <option>Option 0</option>
28 <option>Option 1</option> 28 <option>Option 1</option>
29 <option>Option 2</option> 29 <option>Option 2</option>
30 </select> 30 </select>
31 </form> 31 </form>
32 <p id="console"></p> 32 <p id="console"></p>
33 </body> 33 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698