layout/base/tests/bug512295-1-ref.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE HTML><html class="reftest-wait"><head>
     2   <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     3 </head>
     4 <body>
     5 <div contenteditable="true">
     6 <p id="p">A B CD EFG<br>
     7   1234567890</p>
     8 </div>
     9 x
    10 <script>
    11   // Position the caret at the end of the P element
    12   var p = document.getElementById('p');
    13   var div = p.parentNode;
    14   div.focus();
    15   SpecialPowers.Cu.import("resource://gre/modules/AsyncSpellCheckTestHelper.jsm", window);
    16   onSpellCheck(div, function () {
    17     var sel = window.getSelection();
    18     sel.removeAllRanges();
    19     var range = document.createRange();
    20     range.setStart(p, p.childNodes.length);
    21     range.setEnd(p, p.childNodes.length);
    22     sel.addRange(range);
    23     document.documentElement.classList.remove("reftest-wait");
    24   });
    25 </script>
    27 </body>
    28 </html>

mercurial