tor-browser

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

bug1258308-2.html (824B)


      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          document.body.offsetHeight;
     11          document.documentElement.removeAttribute("class");
     12        }
     13        function runTests() {
     14          var pre = document.querySelector('pre');
     15          window.getSelection().collapse(pre.firstChild, 8/*after the 2nd line newline*/)
     16          pre.focus();
     17          document.body.offsetHeight;
     18        }
     19    </script>
     20 </head>
     21 <body>
     22 
     23 <pre contenteditable tabindex=1 onfocus="test1()" spellcheck="false">abc
     24 def
     25 ghi</pre>
     26 
     27 <script>
     28 SimpleTest.waitForFocus(runTests);
     29 </script>
     30 </body>
     31 </html>