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