layout/base/tests/bug633044-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/tests/bug633044-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +<html>
     1.5 +  <head>
     1.6 +    <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     1.7 +    <script>
     1.8 +        onload = function() {
     1.9 +          var el;
    1.10 +          while (el = document.querySelector("br")) {
    1.11 +            el.parentNode.removeChild(el);
    1.12 +          }
    1.13 +          focus();
    1.14 +          document.body.focus();
    1.15 +          getSelection().collapse(document.body.firstChild, 0);
    1.16 +
    1.17 +          var range = window.getSelection().getRangeAt(0);
    1.18 +          var el = document.createTextNode(" ");
    1.19 +          range.insertNode(el);
    1.20 +          el.parentNode.removeChild(el);
    1.21 +
    1.22 +          synthesizeKey("VK_UP", {});
    1.23 +        }
    1.24 +    </script>
    1.25 +</head>
    1.26 +
    1.27 +<body style="white-space:pre-wrap;" contenteditable></body></html>

mercurial