tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug402198.html (1959B)


      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 src="/tests/SimpleTest/SimpleTest.js"></script>
      8  <script 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('KEY_Tab', {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 SimpleTest.requestFlakyTimeout("untriaged");
     68 addLoadEvent(do_test);
     69 </script>
     70 </pre>
     71 
     72 <style>
     73 * {quotes: "quote" "quote" !important;}
     74 </style>
     75 
     76 </body>
     77 </html>