Bug 749044 - Dynamic reftests for selection attribute and maction rendering. r=karlt
authorAndrii Zui <prazuber@gmail.com>
Tue, 12 Jun 2012 20:06:34 -0400
changeset 96538 5e7422731ea0905ffe0cb6f743879ef60a2aba59
parent 96537 129be81434844046734ee1157c382f768ccc97a6
child 96539 b1e8dab6c52c1dd8931dd4a6ac2fdbe2a448faa3
push id22911
push useremorley@mozilla.com
push dateWed, 13 Jun 2012 12:49:30 +0000
treeherdermozilla-central@efbb6480e98e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
bugs749044
milestone16.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 749044 - Dynamic reftests for selection attribute and maction rendering. r=karlt
layout/reftests/mathml/maction-dynamic-3-ref.html
layout/reftests/mathml/maction-dynamic-3.html
layout/reftests/mathml/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/mathml/maction-dynamic-3-ref.html
@@ -0,0 +1,35 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>dynamic maction 3</title>
+</head>
+
+<body>
+
+<!-- This element generates an invalid markup error. -->
+<!-- We are assuming here that all invalid MathML markups look the same. -->
+<p><math><msup><mi>x</mi></msup></math></p>
+
+<p><math><mtext>--1--</mtext></math></p>
+
+<p><math><mtext>--1--</mtext></math></p>
+
+<p><math><msup><mi>x</mi></msup></math></p>
+
+<p><math><msup><mi>x</mi></msup></math></p>
+
+<p><math><mtext>--1--</mtext></math></p>
+
+<p><math><mtext>--1--</mtext></math></p>
+
+<p><math><mtext>--1--</mtext></math></p>
+
+<p><math><mtext>--1--</mtext></math></p>
+
+<p><math><mtext>--1--</mtext></math></p>
+
+<p><math><mtext>--1--</mtext></math></p>
+
+<p><math><msup><mi>x</mi></msup></math></p>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/mathml/maction-dynamic-3.html
@@ -0,0 +1,137 @@
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
+<head>
+<title>dynamic maction 3</title>
+</head>
+
+<body>
+
+<p>
+<math>
+  <maction id="m1" actiontype="toggle">
+    <mtext>--1--</mtext>
+    <mtext>--2--</mtext>
+  </maction>
+</math>
+</p>
+
+<p>
+<math>
+  <maction id="m2" actiontype="toggle" selection="5">
+    <mtext>--1--</mtext>
+    <mtext>--2--</mtext>
+  </maction>
+</math>
+</p>
+
+<p>
+<math>
+  <maction id="m3" actiontype="toggle" selection="5">
+    <mtext>--1--</mtext>
+    <mtext>--2--</mtext>
+  </maction>
+</math>
+</p>
+
+<p>
+<math>
+  <maction id="m4" actiontype="toggle">
+    <mtext>--1--</mtext>
+    <mtext>--2--</mtext>
+  </maction>
+</math>
+</p>
+
+<p>
+<math>
+  <maction id="m5" actiontype="toggle" selection="5">
+    <mtext>--1--</mtext>
+    <mtext>--2--</mtext>
+  </maction>
+</math>
+</p>
+
+<p>
+<math>
+  <maction id="m6" actiontype="toggle">
+    <mtext>--1--</mtext>
+    <mtext>--2--</mtext>
+  </maction>
+</math>
+</p>
+
+<p>
+<math>
+  <maction id="m7">
+    <mtext>--1--</mtext>
+    <mtext>--2--</mtext>
+  </maction>
+</math>
+</p>
+
+<p>
+<math>
+  <maction id="m8" actiontype="unknown-action-type">
+    <mtext>--1--</mtext>
+    <mtext>--2--</mtext>
+  </maction>
+</math>
+</p>
+
+<p>
+<math>
+  <maction id="m9" selection="5">
+    <mtext>--1--</mtext>
+    <mtext>--2--</mtext>
+  </maction>
+</math>
+</p>
+
+<p>
+<math>
+  <maction id="m10" actiontype="unknown-action-type" selection="5">
+    <mtext>--1--</mtext>
+    <mtext>--2--</mtext>
+  </maction>
+</math>
+</p>
+
+<p>
+<math>
+  <maction id="m11" actiontype="statusline">
+    <mtext>--1--</mtext>
+    <mtext>--2--</mtext>
+  </maction>
+</math>
+</p>
+
+<p>
+<math>
+  <maction id="m12" actiontype="statusline" selection="5">
+    <mtext>--1--</mtext>
+    <mtext>--2--</mtext>
+  </maction>
+</math>
+</p>
+
+<script>
+  function doTest() {
+    document.getElementById("m1").setAttribute("selection", "5");
+    document.getElementById("m2").setAttribute("selection", "1");
+    document.getElementById("m3").setAttribute("actiontype", "statusline");
+    document.getElementById("m4").removeAttribute("actiontype");
+    document.getElementById("m5").setAttribute("actiontype", "unknown-action-type");
+    document.getElementById("m6").setAttribute("actiontype", "unknown-action-type");
+    document.getElementById("m7").setAttribute("actiontype", "toggle");
+    document.getElementById("m8").setAttribute("actiontype", "toggle");
+    document.getElementById("m9").setAttribute("actiontype", "statusline");
+    document.getElementById("m10").setAttribute("actiontype", "statusline");
+    document.getElementById("m11").setAttribute("selection", "5");
+    document.getElementById("m12").setAttribute("actiontype", "toggle");
+  
+    document.documentElement.removeAttribute('class');
+  }
+  window.addEventListener("MozReftestInvalidate", doTest, false);
+</script>
+
+</body>
+</html>
--- a/layout/reftests/mathml/reftest.list
+++ b/layout/reftests/mathml/reftest.list
@@ -96,8 +96,9 @@ fails == mstyle-5.xhtml mstyle-5-ref.xht
 != link-1.xhtml link-ref.xhtml
 == munderover-empty-scripts.html munderover-empty-scripts-ref.html
 == positive-namedspace.html positive-namedspace-ref.html
 == mtable-width.html mtable-width-ref.html
 == maction-selection.html maction-selection-ref.html
 == maction-dynamic-embellished-op.html maction-dynamic-embellished-op-ref.html
 == maction-dynamic-1.html maction-dynamic-1-ref.html
 == maction-dynamic-2.html maction-dynamic-2-ref.html
+== maction-dynamic-3.html maction-dynamic-3-ref.html