tor-browser

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

bug1123067-1.html (1105B)


      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 click(id) {
     10          var e = document.querySelector(id);
     11          synthesizeMouse(e, 1, 1, {type: "mousedown"}, window);
     12          synthesizeMouse(e, 1, 1, {type: "mouseup"}, window);
     13        }
     14        function test() {
     15          for (var i = 0; i < 5; ++i) {
     16            synthesizeKey("KEY_ArrowRight");
     17          }
     18          synthesizeKey("KEY_ArrowLeft");
     19          document.documentElement.removeAttribute("class");
     20        }
     21        function runTests() {
     22          click('#test1')
     23        }
     24    </script>
     25    <style>
     26        div { -moz-user-select:none; }
     27        div:focus { outline:1px solid black; }
     28    </style>
     29 </head>
     30 <body>
     31 
     32 <div id="test1" contenteditable="true" spellcheck="false" onfocus="setTimeout(test, 0)">This text is NOT selectable.</div>
     33 
     34 <script>
     35 SimpleTest.waitForFocus(runTests);
     36 </script>
     37 </body>
     38 </html>