layout/reftests/dom/insertparentandchild.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

michael@0 1 <html class="reftest-wait">
michael@0 2 <head>
michael@0 3
michael@0 4 <script>
michael@0 5 function boom()
michael@0 6 {
michael@0 7 document.body.offsetHeight;
michael@0 8
michael@0 9 var sixdiv = document.getElementById("six");
michael@0 10 var parent = sixdiv.parentNode;
michael@0 11
michael@0 12 var newdiv = document.createElement("div");
michael@0 13 var childdiv = document.createElement("div");
michael@0 14 childdiv.appendChild(document.createTextNode("5c"));
michael@0 15 newdiv.appendChild(childdiv);
michael@0 16 childdiv = document.createElement("div");
michael@0 17 childdiv.appendChild(document.createTextNode("5d"));
michael@0 18 newdiv.appendChild(childdiv);
michael@0 19 parent.insertBefore(newdiv, sixdiv);
michael@0 20
michael@0 21 childdiv = document.createElement("div");
michael@0 22 childdiv.appendChild(document.createTextNode("5b"));
michael@0 23 newdiv.insertBefore(childdiv, newdiv.firstChild);
michael@0 24 childdiv = document.createElement("div");
michael@0 25 childdiv.appendChild(document.createTextNode("5a"));
michael@0 26 newdiv.insertBefore(childdiv, newdiv.firstChild);
michael@0 27
michael@0 28 document.body.offsetHeight;
michael@0 29 document.documentElement.className = "";
michael@0 30 }
michael@0 31 </script>
michael@0 32
michael@0 33 </head>
michael@0 34 <body onload="boom();">
michael@0 35 <div>1</div>
michael@0 36 <div>2</div>
michael@0 37 <div>3</div>
michael@0 38 <div>4</div>
michael@0 39 <div id="six">6</div>
michael@0 40 <div>7</div>
michael@0 41 <div>8</div>
michael@0 42 <div>9</div>
michael@0 43 </body>
michael@0 44 </html>

mercurial