tor-browser

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

bug1123067-ref.html (900B)


      1 <!DOCTYPE HTML>
      2 <html class="reftest-wait">
      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 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          var e = document.querySelector('#test1');
     18          e.focus();
     19        }
     20    </script>
     21    <style>
     22        div:focus { outline:1px solid black; }
     23    </style>
     24 </head>
     25 <body>
     26 
     27 <div id="test1" contenteditable="true" spellcheck="false" onfocus="setTimeout(test, 0)">This text is NOT selectable.</div>
     28 
     29 <script>
     30 SimpleTest.waitForFocus(runTests);
     31 </script>
     32 </body>
     33 </html>