tor-browser

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

bug1237236-1-ref.html (892B)


      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 1237236</title>
      8    <script>
      9        function test1() {
     10          synthesizeKey("KEY_ArrowDown");  // move caret to the second line
     11          // caret should now be at the start of the second line
     12          document.body.offsetHeight;
     13          setTimeout(function(){ document.documentElement.removeAttribute("class"); },0);
     14        }
     15        function runTests() {
     16          document.querySelector('textarea').focus();
     17          document.body.offsetHeight;
     18        }
     19    </script>
     20 </head>
     21 <body>
     22 
     23 <textarea onfocus="test1()" spellcheck="false" style="-moz-appearance:none">abc
     24 def</textarea>
     25 
     26 <script>
     27 SimpleTest.waitForFocus(runTests);
     28 </script>
     29 </body>
     30 </html>