layout/base/tests/bug389321-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><html><head>
     2   <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     3 </head>
     4 <body>
     5 <span contenteditable id="t" style="border: 1px dashed green; min-height: 2px; padding-right: 20px;"> </span></body>
     6 <script>
     7   var sel = window.getSelection();
     8   sel.removeAllRanges();
    10   // Focus the span to put the caret at its beginning.
    11   var area = document.getElementById('t');
    12   area.focus();
    14   // Enter a character in the span then delete it.
    15   sendChar("W");
    16   sendKey("BACK_SPACE");
    17 </script>
    18 </body>
    19 </html>

mercurial