tor-browser

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

bug1123067-3.html (942B)


      1 <!DOCTYPE HTML>
      2 <html class="reftest-wait" style="-moz-user-select:none" spellcheck="false">
      3 <head>
      4    <script src="/tests/SimpleTest/SimpleTest.js"></script>
      5    <script src="/tests/SimpleTest/EventUtils.js"></script>
      6    <meta charset="utf-8">
      7    <title>Testcase #2 for bug 1123067</title>
      8    <script>
      9        function test() {
     10          for (var i = 0; i < 5; ++i) {
     11            synthesizeKey("KEY_ArrowRight");
     12          }
     13          synthesizeKey("KEY_ArrowLeft");
     14          document.documentElement.removeAttribute("class");
     15        }
     16        function runTests() {
     17          document.designMode='on';
     18          document.querySelector('div').focus();
     19          document.body.offsetHeight;
     20          setTimeout(test,0)
     21        }
     22    </script>
     23    <style>
     24        div { outline:1px solid black; }
     25    </style>
     26 </head>
     27 <body>
     28 
     29 <div>This text is NOT selectable.</div>
     30 
     31 <script>
     32 SimpleTest.waitForFocus(runTests);
     33 </script>
     34 </body>
     35 </html>