layout/reftests/mathml/maction-dynamic-2.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/mathml/maction-dynamic-2.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,95 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.5 +<head>
     1.6 +<title>dynamic maction 2</title>
     1.7 +</head>
     1.8 +
     1.9 +<body>
    1.10 +
    1.11 +<p>
    1.12 +<math>
    1.13 +  <maction id="m1" actiontype="statusline">
    1.14 +    <mtext>__1__</mtext>
    1.15 +    <mtext>__2__</mtext>
    1.16 +  </maction>
    1.17 +</math>
    1.18 +</p>
    1.19 +
    1.20 +<p>
    1.21 +<math>
    1.22 +  <maction id="m2" actiontype="statusline" selection="2">
    1.23 +    <mtext>__1__</mtext>
    1.24 +    <mtext>__2__</mtext>
    1.25 +  </maction>
    1.26 +</math>
    1.27 +</p>
    1.28 +
    1.29 +<p>
    1.30 +<math>
    1.31 +  <maction id="m3" actiontype="statusline" selection="2">
    1.32 +    <mtext>__1__</mtext>
    1.33 +    <mtext>__2__</mtext>
    1.34 +  </maction>
    1.35 +</math>
    1.36 +</p>
    1.37 +
    1.38 +<p>
    1.39 +<math>
    1.40 +  <maction id="m4" actiontype="statusline">
    1.41 +    <mtext id="m41">__1__</mtext>
    1.42 +    <mtext id="m42">__2__</mtext>
    1.43 +    <mtext id="m43">__3__</mtext>
    1.44 +  </maction>
    1.45 +</math>
    1.46 +</p>
    1.47 +
    1.48 +<p>
    1.49 +<math>
    1.50 +  <maction id="m5" actiontype="statusline">
    1.51 +    <mtext>__1__</mtext>
    1.52 +  </maction>
    1.53 +</math>
    1.54 +</p>
    1.55 +
    1.56 +<p>
    1.57 +<math>
    1.58 +  <maction id="m6" actiontype="statusline">
    1.59 +    <mtext id="m61">__1__</mtext>
    1.60 +    <mtext id="m62">__2__</mtext>
    1.61 +  </maction>
    1.62 +</math>
    1.63 +</p>
    1.64 +
    1.65 +<p>
    1.66 +<math>
    1.67 +  <maction id="m7" actiontype="statusline">
    1.68 +    <mtext id="m71">__1__</mtext>
    1.69 +    <mtext id="m72">__2__</mtext>
    1.70 +  </maction>
    1.71 +</math>
    1.72 +</p>
    1.73 +
    1.74 +<script>
    1.75 +function doTest() {
    1.76 +  document.getElementById("m1").setAttribute("selection", "2");
    1.77 +  document.getElementById("m2").removeAttribute("selection");
    1.78 +  document.getElementById("m3").setAttribute("actiontype", "toggle");
    1.79 +
    1.80 +  var child41 = document.getElementById("m41");
    1.81 +  document.getElementById("m4").removeChild(child41);
    1.82 +
    1.83 +  var child43 = document.getElementById("m43");
    1.84 +  document.getElementById("m5").appendChild(child43.cloneNode(true));
    1.85 +
    1.86 +  var child61 = document.getElementById("m61");
    1.87 +  document.getElementById("m6").insertBefore(child43.cloneNode(true), child61);
    1.88 +
    1.89 +  var child71 = document.getElementById("m71");
    1.90 +  document.getElementById("m7").replaceChild(child43.cloneNode(true), child71);
    1.91 +
    1.92 +  document.documentElement.removeAttribute('class');
    1.93 +}
    1.94 +window.addEventListener("MozReftestInvalidate", doTest, false);
    1.95 +</script>
    1.96 +
    1.97 +</body>
    1.98 +</html>

mercurial