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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/select-remove-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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test for HTMLSelectElement.remove() on an Options object</title> 4 <title>Test for HTMLSelectElement.remove() on an Options object</title>
5 <SCRIPT LANGUAGE=javascript> 5 <SCRIPT LANGUAGE=javascript>
6 function test() { 6 function test() {
7 var zipselect = document.getElementById("theSelect"); 7 var zipselect = document.getElementById("theSelect");
8 var before = zipselect.options.length; 8 var before = zipselect.options.length;
9 zipselect.remove(zipselect.options[0]); 9 zipselect.remove(zipselect.options[0]);
10 var after = zipselect.options.length; 10 var after = zipselect.options.length;
11 if (before > after) 11 if (before > after)
12 document.getElementById("theDiv").innerHTML = "test passed" 12 document.getElementById("theDiv").innerHTML = "test passed"
13 if (window.testRunner) 13 if (window.testRunner)
14 testRunner.dumpAsText(); 14 testRunner.dumpAsText();
15 } 15 }
16 </SCRIPT> 16 </SCRIPT>
17 </head> 17 </head>
18 18
19 <body onload="test();"> 19 <body onload="test();">
20 <div id="theDiv">test failed</div> 20 <div id="theDiv">test failed</div>
21 <form> 21 <form>
22 <select id="theSelect"> 22 <select id="theSelect">
23 <option value="ALL" selected >hello</option> 23 <option value="ALL" selected >hello</option>
24 </select> 24 </select>
25 </form> 25 </form>
26 </body> 26 </body>
27 27
28 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698