|
1 <html> |
|
2 <!-- |
|
3 https://bugzilla.mozilla.org/show_bug.cgi?id=402198 |
|
4 --> |
|
5 <head> |
|
6 <title>Test for Bug 402198</title> |
|
7 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
8 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> |
|
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
|
10 </head> |
|
11 <body> |
|
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=402198">Mozilla Bug 402198</a> |
|
13 <p id="display"> |
|
14 <select></select> |
|
15 <select><optgroup></optgroup></select> |
|
16 <legend style="overflow: scroll;"> |
|
17 <select></select> |
|
18 </legend> |
|
19 <span></span> |
|
20 <span style="display: -moz-box;"> |
|
21 <select></select> |
|
22 </span> |
|
23 <legend style=" "> |
|
24 <label style="overflow: scroll; display: -moz-box;"> |
|
25 <select></select> |
|
26 </label> |
|
27 </legend> |
|
28 <legend> |
|
29 <label style=" display: table;"> |
|
30 <select id="a"> |
|
31 <option>High Grade</option> |
|
32 <option>Medium Grade</option> |
|
33 </select> |
|
34 </label> |
|
35 </legend> |
|
36 |
|
37 <input> |
|
38 <select multiple="multiple"></select> |
|
39 <select style="overflow: scroll; display: -moz-box;"> |
|
40 <optgroup></optgroup> |
|
41 <optgroup style="display: table-cell;"></optgroup> |
|
42 </select> |
|
43 </p> |
|
44 |
|
45 <pre id="test"> |
|
46 <script class="testbody" type="text/javascript"> |
|
47 function doe3() { |
|
48 document.documentElement.style.display = 'none'; |
|
49 document.body.offsetHeight; |
|
50 document.documentElement.style.display = ''; |
|
51 document.body.offsetHeight; |
|
52 |
|
53 document.getElementById('a').focus(); |
|
54 document.body.style.display = 'none'; |
|
55 |
|
56 synthesizeKey('VK_TAB', {type: "keypress", shiftKey: true}); |
|
57 |
|
58 is(0, 0, "this is a crash/assertion test, so we're ok if we survived this far"); |
|
59 setTimeout(function() {document.body.style.display = ''; SimpleTest.finish();}, 0); |
|
60 } |
|
61 |
|
62 function do_test() { |
|
63 setTimeout(doe3,300); |
|
64 } |
|
65 |
|
66 SimpleTest.waitForExplicitFinish(); |
|
67 addLoadEvent(do_test); |
|
68 </script> |
|
69 </pre> |
|
70 |
|
71 <style> |
|
72 * {quotes: "quote" "quote" !important;} |
|
73 </style> |
|
74 |
|
75 </body> |
|
76 </html> |