tor-browser

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

bug1237236-1.html (1003B)


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