layout/base/tests/bug389321-1.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><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