layout/reftests/dom/insertmultiplemultiple-2.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 class="reftest-wait">
     2 <head>
     4 <script>
     5 function boom()
     6 {
     7   document.body.offsetHeight;
     9   var ninediv = document.getElementById("nine");
    10   var parent = ninediv.parentNode;
    12   for (var i = 4; i <= 8; i++) {
    13     var newdiv = document.createElement("div");
    14     newdiv.appendChild(document.createTextNode(i));
    15     parent.insertBefore(newdiv, ninediv);
    16   }
    18   for (var i = 13; i <= 15; i++) {
    19     var newdiv = document.createElement("div");
    20     newdiv.appendChild(document.createTextNode(i));
    21     parent.appendChild(newdiv);
    22   }
    24   document.body.offsetHeight;
    25   document.documentElement.className = "";
    26 }
    27 </script>
    29 </head>
    30 <body onload="boom();">
    31 <div>1</div>
    32 <div>2</div>
    33 <div>3</div>
    34 <div id="nine">9</div>
    35 <div>10</div>
    36 <div>11</div>
    37 <div>12</div>
    38 </body>
    39 </html>

mercurial