4 https://bugzilla.mozilla.org/show_bug.cgi?id=404872
7 <title>Test for Bug
404872</title>
8 <script type=
"text/javascript" src=
"/MochiKit/MochiKit.js"></script>
9 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <script type=
"text/javascript" src=
"/tests/SimpleTest/EventUtils.js"></script>
11 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
14 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=404872">Mozilla Bug
404872</a>
16 <select multiple
id=
"a">
17 <option name=
"value1">value1
</option>
18 <option name=
"value2">value2
</option>
19 <option name=
"value3">value3
</option>
22 <div id=
"content" style=
"display: none">
26 <script class=
"testbody" type=
"text/javascript">
28 /* Focus, press key down twice, and make sure we successfully selected the second item. */
30 synthesizeKey(
"VK_DOWN", {});
31 synthesizeKey(
"VK_DOWN", {});
32 is($(
"a").value,
"value2",
"value2 should be selected!");