Bug 449371 Firefox/Thunderbird crashes at exit [@ gdk_display_x11_finalize], p=Brian...
[wine-gecko.git] / layout / generic / test / test_bug404872.html
blob3a78daf08cfbbc55788e724a005f837a34d77973
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=404872
5 -->
6 <head>
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" />
12 </head>
13 <body>
14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=404872">Mozilla Bug 404872</a>
15 <p id="display">
16 <select multiple id="a">
17 <option name="value1">value1</option>
18 <option name="value2">value2</option>
19 <option name="value3">value3</option>
20 </select>
21 </p>
22 <div id="content" style="display: none">
24 </div>
25 <pre id="test">
26 <script class="testbody" type="text/javascript">
28 /* Focus, press key down twice, and make sure we successfully selected the second item. */
29 $('a').focus();
30 synthesizeKey("VK_DOWN", {});
31 synthesizeKey("VK_DOWN", {});
32 is($("a").value, "value2", "value2 should be selected!");
35 </script>
36 </pre>
37 </body>
38 </html>