Bug 767636 - Expose plugin fallback type to extensions. r=josh
[gecko.git] / layout / forms / test / test_bug402198.html
blob451e55d9fa14796bd7380a06b29e701468a6122d
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>
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>
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;
53 document.getElementById('a').focus();
54 document.body.style.display = 'none';
55 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
56 var wu = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
57 .getInterface(Components.interfaces.nsIDOMWindowUtils);
58 wu.sendKeyEvent('keypress', 9, 0, 4);
60 is(0, 0, "this is a crash/assertion test, so we're ok if we survived this far");
61 SimpleTest.finish();
64 function do_test() {
65 setTimeout(doe3,300);
68 SimpleTest.waitForExplicitFinish();
69 addLoadEvent(do_test);
70 </script>
71 </pre>
73 <style>
74 * {quotes: "quote" "quote" !important;}
75 </style>
77 </body>
78 </html>