layout/reftests/dom/appendmultiple.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/dom/appendmultiple.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     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 parent = document.getElementById("body");
    1.13 +
    1.14 +  for (var i = 3; i <= 5; i++) {
    1.15 +    var newdiv = document.createElement("div");
    1.16 +    newdiv.appendChild(document.createTextNode(i));
    1.17 +    parent.appendChild(newdiv);
    1.18 +  }
    1.19 +
    1.20 +  document.body.offsetHeight;
    1.21 +  document.documentElement.className = "";
    1.22 +}
    1.23 +</script>
    1.24 +
    1.25 +</head>
    1.26 +<body id="body" onload="boom();">
    1.27 +<div>1</div>
    1.28 +<div>2</div>
    1.29 +</body>
    1.30 +</html>

mercurial