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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/mathml/maction-dynamic-3.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,137 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.5 +<head>
     1.6 +<title>dynamic maction 3</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="5">
    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="5">
    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 +    <mtext>--1--</mtext>
    1.42 +    <mtext>--2--</mtext>
    1.43 +  </maction>
    1.44 +</math>
    1.45 +</p>
    1.46 +
    1.47 +<p>
    1.48 +<math>
    1.49 +  <maction id="m5" actiontype="toggle" selection="5">
    1.50 +    <mtext>--1--</mtext>
    1.51 +    <mtext>--2--</mtext>
    1.52 +  </maction>
    1.53 +</math>
    1.54 +</p>
    1.55 +
    1.56 +<p>
    1.57 +<math>
    1.58 +  <maction id="m6" actiontype="toggle">
    1.59 +    <mtext>--1--</mtext>
    1.60 +    <mtext>--2--</mtext>
    1.61 +  </maction>
    1.62 +</math>
    1.63 +</p>
    1.64 +
    1.65 +<p>
    1.66 +<math>
    1.67 +  <maction id="m7">
    1.68 +    <mtext>--1--</mtext>
    1.69 +    <mtext>--2--</mtext>
    1.70 +  </maction>
    1.71 +</math>
    1.72 +</p>
    1.73 +
    1.74 +<p>
    1.75 +<math>
    1.76 +  <maction id="m8" actiontype="unknown-action-type">
    1.77 +    <mtext>--1--</mtext>
    1.78 +    <mtext>--2--</mtext>
    1.79 +  </maction>
    1.80 +</math>
    1.81 +</p>
    1.82 +
    1.83 +<p>
    1.84 +<math>
    1.85 +  <maction id="m9" selection="5">
    1.86 +    <mtext>--1--</mtext>
    1.87 +    <mtext>--2--</mtext>
    1.88 +  </maction>
    1.89 +</math>
    1.90 +</p>
    1.91 +
    1.92 +<p>
    1.93 +<math>
    1.94 +  <maction id="m10" actiontype="unknown-action-type" selection="5">
    1.95 +    <mtext>--1--</mtext>
    1.96 +    <mtext>--2--</mtext>
    1.97 +  </maction>
    1.98 +</math>
    1.99 +</p>
   1.100 +
   1.101 +<p>
   1.102 +<math>
   1.103 +  <maction id="m11" actiontype="statusline">
   1.104 +    <mtext>--1--</mtext>
   1.105 +    <mtext>--2--</mtext>
   1.106 +  </maction>
   1.107 +</math>
   1.108 +</p>
   1.109 +
   1.110 +<p>
   1.111 +<math>
   1.112 +  <maction id="m12" actiontype="statusline" selection="5">
   1.113 +    <mtext>--1--</mtext>
   1.114 +    <mtext>--2--</mtext>
   1.115 +  </maction>
   1.116 +</math>
   1.117 +</p>
   1.118 +
   1.119 +<script>
   1.120 +  function doTest() {
   1.121 +    document.getElementById("m1").setAttribute("selection", "5");
   1.122 +    document.getElementById("m2").setAttribute("selection", "1");
   1.123 +    document.getElementById("m3").setAttribute("actiontype", "statusline");
   1.124 +    document.getElementById("m4").removeAttribute("actiontype");
   1.125 +    document.getElementById("m5").setAttribute("actiontype", "unknown-action-type");
   1.126 +    document.getElementById("m6").setAttribute("actiontype", "unknown-action-type");
   1.127 +    document.getElementById("m7").setAttribute("actiontype", "toggle");
   1.128 +    document.getElementById("m8").setAttribute("actiontype", "toggle");
   1.129 +    document.getElementById("m9").setAttribute("actiontype", "statusline");
   1.130 +    document.getElementById("m10").setAttribute("actiontype", "statusline");
   1.131 +    document.getElementById("m11").setAttribute("selection", "5");
   1.132 +    document.getElementById("m12").setAttribute("actiontype", "toggle");
   1.133 +  
   1.134 +    document.documentElement.removeAttribute('class');
   1.135 +  }
   1.136 +  window.addEventListener("MozReftestInvalidate", doTest, false);
   1.137 +</script>
   1.138 +
   1.139 +</body>
   1.140 +</html>

mercurial