layout/reftests/mathml/maction-dynamic-embellished-op.html

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 <html class="reftest-wait">
michael@0 2
michael@0 3 <head>
michael@0 4 <title>dynamic maction and embellished op</title>
michael@0 5 </head>
michael@0 6
michael@0 7 <body>
michael@0 8
michael@0 9 <p>'<math><maction id="m1"><mi>a</mi><mo>b</mo></maction></math>'</p>
michael@0 10 <p>'<math><maction id="m2"><mo>b</mo><mi>a</mi></maction></math>'</p>
michael@0 11
michael@0 12 <p>"<math><maction id="m3"><mi>a</mi><mo>b</mo></maction></math>"</p>
michael@0 13 <p>"<math><maction id="m3bis"><mo>b</mo></maction></math>"</p>
michael@0 14
michael@0 15 <p>{<math><maction id="m4"><mo>b</mo><mi>a</mi></maction></math>}</p>
michael@0 16 <p>{<math><maction id="m4bis"><mi>a</mi></maction></math>}</p>
michael@0 17
michael@0 18
michael@0 19 <p>[<math>
michael@0 20 <mstyle id="m5"><maction><mi>a</mi><mo>b</mo></maction></mstyle>
michael@0 21 </math>]</p>
michael@0 22 <p>[<math>
michael@0 23 <mstyle id="m6"><maction><mo>b</mo><mi>a</mi></maction></mstyle>
michael@0 24 </math>]</p>
michael@0 25
michael@0 26 <p>(<math id="m7"><maction><mi>a</mi><mo>b</mo></maction></math>)</p>
michael@0 27 <p>(<math id="m8"><maction><mo>b</mo><mi>a</mi></maction></math>)</p>
michael@0 28
michael@0 29 <script>
michael@0 30 function doTest()
michael@0 31 {
michael@0 32 document.getElementById("m1").setAttribute("selection", "2");
michael@0 33 document.getElementById("m2").setAttribute("selection", "2");
michael@0 34
michael@0 35 var m3 = document.getElementById("m3");
michael@0 36 var m3bis = document.getElementById("m3bis");
michael@0 37 m3bis.insertBefore(m3.removeChild(m3.firstChild), m3bis.firstChild);
michael@0 38
michael@0 39 var m4 = document.getElementById("m4");
michael@0 40 var m4bis = document.getElementById("m4bis");
michael@0 41 m4bis.insertBefore(m4.removeChild(m4.firstChild), m4bis.firstChild);
michael@0 42
michael@0 43 document.getElementById("m5").setAttribute("selection", "2");
michael@0 44 document.getElementById("m6").setAttribute("selection", "2");
michael@0 45
michael@0 46 document.getElementById("m7").setAttribute("selection", "2");
michael@0 47 document.getElementById("m8").setAttribute("selection", "2");
michael@0 48
michael@0 49 document.documentElement.removeAttribute("class");
michael@0 50 }
michael@0 51
michael@0 52 window.addEventListener("MozReftestInvalidate", doTest, false);
michael@0 53 </script>
michael@0 54
michael@0 55 </body>
michael@0 56 </html>

mercurial