layout/base/tests/bug389321-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/tests/bug389321-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +<!DOCTYPE HTML><html><head>
     1.5 +  <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     1.6 +</head>
     1.7 +<body>
     1.8 +<span contenteditable id="t" style="border: 1px dashed green; min-height: 2px; padding-right: 20px;"> </span></body>
     1.9 +<script>
    1.10 +  var sel = window.getSelection();
    1.11 +  sel.removeAllRanges();
    1.12 +
    1.13 +  // Focus the span to put the caret at its beginning.
    1.14 +  var area = document.getElementById('t');
    1.15 +  area.focus();
    1.16 +
    1.17 +  // Enter a character in the span then delete it.
    1.18 +  sendChar("W");
    1.19 +  sendKey("BACK_SPACE");
    1.20 +</script>
    1.21 +</body>
    1.22 +</html>

mercurial