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