layout/base/tests/bug644428-1.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE html>
     2 <html>
     3   <head>
     4     <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     5   </head>
     6   <body onload="setupCaret()" spellcheck="false">
     7     <div contenteditable>a<span>b</span>c </div>
     8     <script>
     9       function setupCaret() {
    10         var div = document.querySelector("div");
    11         div.focus();
    12         var sel = window.getSelection();
    13         sel.collapse(div, 3);
    14         synthesizeKey("VK_BACK_SPACE", {});
    15         synthesizeKey("VK_BACK_SPACE", {});
    16       }
    17     </script>
    18   </body>
    19 </html>

mercurial