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

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
michael@0 2 <head>
michael@0 3 <title>dynamic maction 2</title>
michael@0 4 </head>
michael@0 5
michael@0 6 <body>
michael@0 7
michael@0 8 <p>
michael@0 9 <math>
michael@0 10 <maction id="m1" actiontype="statusline">
michael@0 11 <mtext>__1__</mtext>
michael@0 12 <mtext>__2__</mtext>
michael@0 13 </maction>
michael@0 14 </math>
michael@0 15 </p>
michael@0 16
michael@0 17 <p>
michael@0 18 <math>
michael@0 19 <maction id="m2" actiontype="statusline" selection="2">
michael@0 20 <mtext>__1__</mtext>
michael@0 21 <mtext>__2__</mtext>
michael@0 22 </maction>
michael@0 23 </math>
michael@0 24 </p>
michael@0 25
michael@0 26 <p>
michael@0 27 <math>
michael@0 28 <maction id="m3" actiontype="statusline" selection="2">
michael@0 29 <mtext>__1__</mtext>
michael@0 30 <mtext>__2__</mtext>
michael@0 31 </maction>
michael@0 32 </math>
michael@0 33 </p>
michael@0 34
michael@0 35 <p>
michael@0 36 <math>
michael@0 37 <maction id="m4" actiontype="statusline">
michael@0 38 <mtext id="m41">__1__</mtext>
michael@0 39 <mtext id="m42">__2__</mtext>
michael@0 40 <mtext id="m43">__3__</mtext>
michael@0 41 </maction>
michael@0 42 </math>
michael@0 43 </p>
michael@0 44
michael@0 45 <p>
michael@0 46 <math>
michael@0 47 <maction id="m5" actiontype="statusline">
michael@0 48 <mtext>__1__</mtext>
michael@0 49 </maction>
michael@0 50 </math>
michael@0 51 </p>
michael@0 52
michael@0 53 <p>
michael@0 54 <math>
michael@0 55 <maction id="m6" actiontype="statusline">
michael@0 56 <mtext id="m61">__1__</mtext>
michael@0 57 <mtext id="m62">__2__</mtext>
michael@0 58 </maction>
michael@0 59 </math>
michael@0 60 </p>
michael@0 61
michael@0 62 <p>
michael@0 63 <math>
michael@0 64 <maction id="m7" actiontype="statusline">
michael@0 65 <mtext id="m71">__1__</mtext>
michael@0 66 <mtext id="m72">__2__</mtext>
michael@0 67 </maction>
michael@0 68 </math>
michael@0 69 </p>
michael@0 70
michael@0 71 <script>
michael@0 72 function doTest() {
michael@0 73 document.getElementById("m1").setAttribute("selection", "2");
michael@0 74 document.getElementById("m2").removeAttribute("selection");
michael@0 75 document.getElementById("m3").setAttribute("actiontype", "toggle");
michael@0 76
michael@0 77 var child41 = document.getElementById("m41");
michael@0 78 document.getElementById("m4").removeChild(child41);
michael@0 79
michael@0 80 var child43 = document.getElementById("m43");
michael@0 81 document.getElementById("m5").appendChild(child43.cloneNode(true));
michael@0 82
michael@0 83 var child61 = document.getElementById("m61");
michael@0 84 document.getElementById("m6").insertBefore(child43.cloneNode(true), child61);
michael@0 85
michael@0 86 var child71 = document.getElementById("m71");
michael@0 87 document.getElementById("m7").replaceChild(child43.cloneNode(true), child71);
michael@0 88
michael@0 89 document.documentElement.removeAttribute('class');
michael@0 90 }
michael@0 91 window.addEventListener("MozReftestInvalidate", doTest, false);
michael@0 92 </script>
michael@0 93
michael@0 94 </body>
michael@0 95 </html>

mercurial