layout/reftests/dom/insertsingle.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/dom/insertsingle.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +<html class="reftest-wait">
     1.5 +<head>
     1.6 +
     1.7 +<script>
     1.8 +function boom()
     1.9 +{
    1.10 +  document.body.offsetHeight;
    1.11 +
    1.12 +  var fourdiv = document.getElementById("four");
    1.13 +  var parent = fourdiv.parentNode;
    1.14 +
    1.15 +  var newdiv = document.createElement("div");
    1.16 +  newdiv.appendChild(document.createTextNode("3"));
    1.17 +  parent.insertBefore(newdiv, fourdiv);
    1.18 +
    1.19 +  document.body.offsetHeight;
    1.20 +  document.documentElement.className = "";
    1.21 +}
    1.22 +</script>
    1.23 +
    1.24 +</head>
    1.25 +<body onload="boom();">
    1.26 +<div>1</div>
    1.27 +<div>2</div>
    1.28 +<div id="four">4</div>
    1.29 +<div>5</div>
    1.30 +</body>
    1.31 +</html>

mercurial