tor-browser

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

bug1258308-1-ref.html (980B)


      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 #1 for bug 1258308</title>
      8    <script>
      9        function test1() {
     10          synthesizeKey("KEY_ArrowDown");
     11          synthesizeKey("KEY_ArrowDown");
     12          // caret should now be at the start of the third line
     13          document.body.offsetHeight;
     14          requestAnimationFrame(() => requestAnimationFrame(() => {
     15            document.documentElement.removeAttribute("class");
     16          }));
     17        }
     18        function runTests() {
     19          document.querySelector('textarea').focus();
     20          document.body.offsetHeight;
     21        }
     22    </script>
     23 </head>
     24 <body>
     25 
     26 <textarea onfocus="test1()" spellcheck="false" style="-moz-appearance:none;scrollbar-width:none">abc
     27 def
     28 ghi</textarea>
     29 
     30 <script>
     31 SimpleTest.waitForFocus(runTests);
     32 </script>
     33 </body>
     34 </html>