layout/reftests/dom/multipleinsertionpoints-insertmultiple.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/dom/multipleinsertionpoints-insertmultiple.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,49 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.5 +<head>
     1.6 +
     1.7 +<bindings xmlns="http://www.mozilla.org/xbl"
     1.8 +          xmlns:xhtml="http://www.w3.org/1999/xhtml">
     1.9 +  <binding id="a">
    1.10 +    <content>
    1.11 +      <xhtml:div>
    1.12 +        <children includes="span"/>
    1.13 +      </xhtml:div>
    1.14 +      <xhtml:div>
    1.15 +        <children/>
    1.16 +      </xhtml:div>
    1.17 +    </content>
    1.18 +  </binding>  
    1.19 +</bindings>
    1.20 +
    1.21 +<script>
    1.22 +function boom()
    1.23 +{
    1.24 +  document.body.offsetHeight;
    1.25 +
    1.26 +  var lastdiv = document.getElementById("last");
    1.27 +  var parent = lastdiv.parentNode;
    1.28 +
    1.29 +  var newelt = document.createElement("span");
    1.30 +  newelt.appendChild(document.createTextNode(1));
    1.31 +  parent.insertBefore(newelt, lastdiv);
    1.32 +
    1.33 +  newelt = document.createElement("div");
    1.34 +  newelt.appendChild(document.createTextNode(4));
    1.35 +  parent.insertBefore(newelt, lastdiv);
    1.36 +
    1.37 +  newelt = document.createElement("span");
    1.38 +  newelt.appendChild(document.createTextNode(2));
    1.39 +  parent.insertBefore(newelt, lastdiv);
    1.40 +
    1.41 +  document.body.offsetHeight;
    1.42 +  document.documentElement.className = "";
    1.43 +}
    1.44 +</script>
    1.45 +
    1.46 +</head>
    1.47 +<body onload="boom();">
    1.48 +<div style="-moz-binding: url(#a);">
    1.49 +  <div>3</div><div id="last">5</div>
    1.50 +</div>
    1.51 +</body>
    1.52 +</html>

mercurial