Bug 1363428 - Use reftest wait for MathML tests that do click onload, r=ato draft
authorJames Graham <james@hoppipolla.co.uk>
Fri, 02 Jun 2017 21:24:02 +0100
changeset 600220 576a1613005ec87cadc41d21880bcdf03334a3c0
parent 600219 28674aef2d0286d589d59b4f35ddb0030b623eeb
child 634929 e51eff4ddf4808487ec1a0d44fba0f3c0beb1e55
push id65688
push userbmo:james@hoppipolla.co.uk
push dateSat, 24 Jun 2017 11:04:46 +0000
reviewersato
bugs1363428
milestone56.0a1
Bug 1363428 - Use reftest wait for MathML tests that do click onload, r=ato MozReview-Commit-ID: CYI4y3B4yNm
testing/web-platform/meta/mathml/relations/html5-tree/href-click-1.html.ini
testing/web-platform/meta/mathml/relations/html5-tree/href-click-2.html.ini
testing/web-platform/tests/mathml/relations/html5-tree/href-click-1.html
testing/web-platform/tests/mathml/relations/html5-tree/href-click-2.html
deleted file mode 100644
--- a/testing/web-platform/meta/mathml/relations/html5-tree/href-click-1.html.ini
+++ /dev/null
@@ -1,22 +0,0 @@
-[href-click-1.html]
-  type: reftest
-  expected:
-    if not debug and not stylo and e10s and (os == "win") and (version == "6.1.7601") and (processor == "x86") and (bits == 32): PASS
-    if not debug and not stylo and not e10s and (os == "win") and (version == "6.1.7601") and (processor == "x86") and (bits == 32): PASS
-    if debug and not stylo and e10s and (os == "win") and (version == "6.2.9200") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and not stylo and not e10s and (os == "win") and (version == "6.2.9200") and (processor == "x86_64") and (bits == 64): PASS
-    if not debug and not stylo and e10s and (os == "win") and (version == "6.2.9200") and (processor == "x86_64") and (bits == 64): PASS
-    if not debug and not stylo and not e10s and (os == "win") and (version == "6.2.9200") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and not stylo and not e10s and (os == "win") and (version == "10.0.15063") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and not stylo and e10s and (os == "win") and (version == "6.1.7601") and (processor == "x86") and (bits == 32): PASS
-    if not debug and not stylo and e10s and (os == "win") and (version == "10.0.15063") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and not stylo and e10s and (os == "win") and (version == "10.0.15063") and (processor == "x86_64") and (bits == 64): PASS
-    if not debug and not stylo and not e10s and (os == "win") and (version == "10.0.15063") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and not stylo and not e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86") and (bits == 32): PASS
-    if not debug and not stylo and not e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86") and (bits == 32): PASS
-    if not debug and stylo and not e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and not stylo and not e10s and (os == "win") and (version == "6.1.7601") and (processor == "x86") and (bits == 32): PASS
-    if debug and stylo and not e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and not stylo and not e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): PASS
-    if not debug and not stylo and not e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): PASS
-    FAIL
deleted file mode 100644
--- a/testing/web-platform/meta/mathml/relations/html5-tree/href-click-2.html.ini
+++ /dev/null
@@ -1,22 +0,0 @@
-[href-click-2.html]
-  type: reftest
-  expected:
-    if not debug and not stylo and e10s and (os == "win") and (version == "6.1.7601") and (processor == "x86") and (bits == 32): PASS
-    if not debug and not stylo and not e10s and (os == "win") and (version == "6.1.7601") and (processor == "x86") and (bits == 32): PASS
-    if debug and not stylo and e10s and (os == "win") and (version == "6.2.9200") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and not stylo and not e10s and (os == "win") and (version == "6.2.9200") and (processor == "x86_64") and (bits == 64): PASS
-    if not debug and not stylo and e10s and (os == "win") and (version == "6.2.9200") and (processor == "x86_64") and (bits == 64): PASS
-    if not debug and not stylo and not e10s and (os == "win") and (version == "6.2.9200") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and not stylo and not e10s and (os == "win") and (version == "10.0.15063") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and not stylo and e10s and (os == "win") and (version == "6.1.7601") and (processor == "x86") and (bits == 32): PASS
-    if not debug and not stylo and e10s and (os == "win") and (version == "10.0.15063") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and not stylo and e10s and (os == "win") and (version == "10.0.15063") and (processor == "x86_64") and (bits == 64): PASS
-    if not debug and not stylo and not e10s and (os == "win") and (version == "10.0.15063") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and not stylo and not e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86") and (bits == 32): PASS
-    if not debug and not stylo and not e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86") and (bits == 32): PASS
-    if not debug and stylo and not e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and not stylo and not e10s and (os == "win") and (version == "6.1.7601") and (processor == "x86") and (bits == 32): PASS
-    if debug and stylo and e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): PASS
-    if debug and stylo and not e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): PASS
-    if not debug and not stylo and not e10s and (os == "linux") and (version == "Ubuntu 16.04") and (processor == "x86_64") and (bits == 64): PASS
-    FAIL
--- a/testing/web-platform/tests/mathml/relations/html5-tree/href-click-1.html
+++ b/testing/web-platform/tests/mathml/relations/html5-tree/href-click-1.html
@@ -1,21 +1,22 @@
 <!DOCTYPE html>
-<html>
+<html class="reftest-wait">
 <head>
 <meta charset="utf-8"/>
 <title>href click</title>
 <link rel="help" href="http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS2">
 <link rel="match" href="href-click-1-ref.html"/>
 <meta name="assert" content="Verify that a click on a link moves to the target.">
 <script type="text/javascript">
   function test()
   {
     var event = new MouseEvent('click', {bubbles: true, cancelable: true});
     document.getElementById('link').dispatchEvent(event);
+    document.documentElement.className = "";
   }
 </script>
 </head>
 <body onload="test()">
 
   <p>This test passes if you see a green square.</p>
 
   <div style="width: 150px; height: 150px; overflow: hidden">
--- a/testing/web-platform/tests/mathml/relations/html5-tree/href-click-2.html
+++ b/testing/web-platform/tests/mathml/relations/html5-tree/href-click-2.html
@@ -1,21 +1,22 @@
 <!DOCTYPE html>
-<html>
+<html class="reftest-wait">
 <head>
 <meta charset="utf-8"/>
 <title>href click</title>
 <link rel="help" href="http://www.mathml-association.org/MathMLinHTML5/S2.html#SS1.SSS2">
 <link rel="match" href="href-click-2-ref.html"/>
 <meta name="assert" content="Verify that a click on an element bubbles to an ancestor link.">
 <script type="text/javascript">
   function test()
   {
     var event = new MouseEvent('click', {bubbles: true, cancelable: true});
     document.getElementById('space').dispatchEvent(event);
+    document.documentElement.className = "";
   }
 </script>
 </head>
 <body onload="test()">
 
   <p>This test passes if you see a green square.</p>
 
   <div style="width: 150px; height: 150px; overflow: hidden">