layout/reftests/dom/multipleinsertionpoints-insertsingle-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/dom/multipleinsertionpoints-insertsingle-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     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(2));
    1.31 +  parent.insertBefore(newelt, lastdiv);
    1.32 +
    1.33 +  document.body.offsetHeight;
    1.34 +  document.documentElement.className = "";
    1.35 +}
    1.36 +</script>
    1.37 +
    1.38 +</head>
    1.39 +<body onload="boom();">
    1.40 +<div style="-moz-binding: url(#a);">
    1.41 +  <div>3</div><span>1</span><div>4</div><div id="last">5</div>
    1.42 +</div>
    1.43 +</body>
    1.44 +</html>

mercurial