4 https://bugzilla.mozilla.org/show_bug.cgi?id=405242
7 <title>Test for Bug
405252</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=405242">Mozilla Bug
405242</a>
14 <div id=
"content" style=
"display: none">
18 <script class=
"testbody" type=
"text/javascript">
19 /** Test for Bug
405242 **/
20 var sel = document.createElement(
"select");
21 sel.appendChild(new Option());
22 sel.appendChild(new Option());
23 sel.appendChild(new Option());
27 sel.options.remove(
0);
28 sel.options.remove(
1000);
29 sel.options.remove(-
1);
30 is(sel.length,
3,
"Unexpected option collection length");
31 is(sel[
2].value,
"10",
"Unexpected remained option");