layout/base/tests/bug633044-1.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <html>
     2   <head>
     3     <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     4     <script>
     5         onload = function() {
     6           var el;
     7           while (el = document.querySelector("br")) {
     8             el.parentNode.removeChild(el);
     9           }
    10           focus();
    11           document.body.focus();
    12           getSelection().collapse(document.body.firstChild, 0);
    14           var range = window.getSelection().getRangeAt(0);
    15           var el = document.createTextNode(" ");
    16           range.insertNode(el);
    17           el.parentNode.removeChild(el);
    19           synthesizeKey("VK_UP", {});
    20         }
    21     </script>
    22 </head>
    24 <body style="white-space:pre-wrap;" contenteditable></body></html>

mercurial