1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/forms/test/test_bug402198.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,76 @@ 1.4 +<html> 1.5 +<!-- 1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=402198 1.7 +--> 1.8 +<head> 1.9 + <title>Test for Bug 402198</title> 1.10 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.11 + <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> 1.12 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.13 +</head> 1.14 +<body> 1.15 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=402198">Mozilla Bug 402198</a> 1.16 +<p id="display"> 1.17 + <select></select> 1.18 + <select><optgroup></optgroup></select> 1.19 + <legend style="overflow: scroll;"> 1.20 + <select></select> 1.21 + </legend> 1.22 + <span></span> 1.23 + <span style="display: -moz-box;"> 1.24 + <select></select> 1.25 + </span> 1.26 + <legend style=" "> 1.27 + <label style="overflow: scroll; display: -moz-box;"> 1.28 + <select></select> 1.29 + </label> 1.30 + </legend> 1.31 + <legend> 1.32 + <label style=" display: table;"> 1.33 + <select id="a"> 1.34 + <option>High Grade</option> 1.35 + <option>Medium Grade</option> 1.36 + </select> 1.37 + </label> 1.38 + </legend> 1.39 + 1.40 + <input> 1.41 + <select multiple="multiple"></select> 1.42 + <select style="overflow: scroll; display: -moz-box;"> 1.43 + <optgroup></optgroup> 1.44 + <optgroup style="display: table-cell;"></optgroup> 1.45 + </select> 1.46 +</p> 1.47 + 1.48 +<pre id="test"> 1.49 +<script class="testbody" type="text/javascript"> 1.50 +function doe3() { 1.51 + document.documentElement.style.display = 'none'; 1.52 + document.body.offsetHeight; 1.53 + document.documentElement.style.display = ''; 1.54 + document.body.offsetHeight; 1.55 + 1.56 + document.getElementById('a').focus(); 1.57 + document.body.style.display = 'none'; 1.58 + 1.59 + synthesizeKey('VK_TAB', {type: "keypress", shiftKey: true}); 1.60 + 1.61 + is(0, 0, "this is a crash/assertion test, so we're ok if we survived this far"); 1.62 + setTimeout(function() {document.body.style.display = ''; SimpleTest.finish();}, 0); 1.63 +} 1.64 + 1.65 +function do_test() { 1.66 + setTimeout(doe3,300); 1.67 +} 1.68 + 1.69 +SimpleTest.waitForExplicitFinish(); 1.70 +addLoadEvent(do_test); 1.71 +</script> 1.72 +</pre> 1.73 + 1.74 +<style> 1.75 +* {quotes: "quote" "quote" !important;} 1.76 +</style> 1.77 + 1.78 +</body> 1.79 +</html>