tor-browser

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

bug1258308-2-ref.html (778B)


      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 #2 for bug 1258308</title>
      8    <script>
      9        function test1() {
     10          synthesizeKey("KEY_ArrowRight", {repeat: 8});
     11          document.body.offsetHeight;
     12          document.documentElement.removeAttribute("class");
     13        }
     14        function runTests() {
     15          document.querySelector('pre').focus();
     16          document.body.offsetHeight;
     17        }
     18    </script>
     19 </head>
     20 <body>
     21 
     22 <pre contenteditable tabindex=1 onfocus="setTimeout(test1, 0)" spellcheck="false">abc
     23 def
     24 ghi</pre>
     25 
     26 <script>
     27 SimpleTest.waitForFocus(runTests);
     28 </script>
     29 </body>
     30 </html>