1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/mathml/maction-dynamic-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,106 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> 1.5 +<head> 1.6 +<title>dynamic maction 1</title> 1.7 +</head> 1.8 + 1.9 +<body> 1.10 + 1.11 +<p> 1.12 +<math> 1.13 + <maction id="m1" actiontype="toggle"> 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="toggle" 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="toggle" 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="toggle"> 1.41 + <mn>1</mn> 1.42 + <mn>2</mn> 1.43 + </maction> 1.44 +</math> 1.45 +</p> 1.46 + 1.47 +<p> 1.48 +<math> 1.49 + <maction id="m5" actiontype="toggle"> 1.50 + <mtext id="m51">__1__</mtext> 1.51 + <mtext id="m52">__2__</mtext> 1.52 + <mtext id="m53">__3__</mtext> 1.53 + </maction> 1.54 +</math> 1.55 +</p> 1.56 + 1.57 +<p> 1.58 +<math> 1.59 + <maction id="m6" actiontype="toggle" selection="3"> 1.60 + <mtext>__1__</mtext> 1.61 + <mtext>__2__</mtext> 1.62 + </maction> 1.63 +</math> 1.64 +</p> 1.65 + 1.66 +<p> 1.67 +<math> 1.68 + <maction id="m7" actiontype="toggle"> 1.69 + <mtext id="m71">__1__</mtext> 1.70 + <mtext id="m72">__2__</mtext> 1.71 + </maction> 1.72 +</math> 1.73 +</p> 1.74 + 1.75 +<p> 1.76 +<math> 1.77 + <maction id="m8" actiontype="toggle"> 1.78 + <mtext id="m81">__1__</mtext> 1.79 + <mtext id="m82">__2__</mtext> 1.80 + </maction> 1.81 +</math> 1.82 +</p> 1.83 + 1.84 +<script> 1.85 +function doTest() { 1.86 + document.getElementById("m1").setAttribute("selection", "2"); 1.87 + document.getElementById("m2").removeAttribute("selection"); 1.88 + document.getElementById("m3").setAttribute("actiontype", "statusline"); 1.89 + document.getElementById("m4").setAttribute("actiontype", "statusline"); 1.90 + 1.91 + var child51 = document.getElementById("m51"); 1.92 + document.getElementById("m5").removeChild(child51); 1.93 + 1.94 + var child53 = document.getElementById("m53"); 1.95 + document.getElementById("m6").appendChild(child53.cloneNode(true)); 1.96 + 1.97 + var child71 = document.getElementById("m71"); 1.98 + document.getElementById("m7").insertBefore(child53.cloneNode(true), child71); 1.99 + 1.100 + var child81 = document.getElementById("m81"); 1.101 + document.getElementById("m8").replaceChild(child53.cloneNode(true), child81); 1.102 + 1.103 + document.documentElement.removeAttribute('class'); 1.104 +} 1.105 +window.addEventListener("MozReftestInvalidate", doTest, false); 1.106 +</script> 1.107 + 1.108 +</body> 1.109 +</html>