Bug 1299343 - Wait for MozReftestInvalidate before ending test. r=ryanvm, a=test-only
authorMats Palmgren <mats@mozilla.com>
Wed, 08 Feb 2017 08:00:00 -0500
changeset 376048 93c9e3a31a1b3e071bcbb4070b4af6a3a49792c4
parent 376047 208fb52894e92d98c8c459a5feb7de9b2a403246
child 376049 18ce0a37dca6f83270966b816259a2c9d3d593b4
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersryanvm, test-only
bugs1299343
milestone53.0a2
Bug 1299343 - Wait for MozReftestInvalidate before ending test. r=ryanvm, a=test-only
layout/reftests/border-dotted/border-dashed-radius-zoom.html
--- a/layout/reftests/border-dotted/border-dashed-radius-zoom.html
+++ b/layout/reftests/border-dotted/border-dashed-radius-zoom.html
@@ -1,10 +1,10 @@
 <!DOCTYPE HTML>
-<html reftest-zoom="1.3300000429153442">
+<html reftest-zoom="1.3300000429153442" class="reftest-wait">
   <head>
     <meta charset="utf-8">
     <title>dashed border with radius</title>
     <style>
 .box {
   position: relative;
   width: 420px;
   height: 420px;
@@ -54,16 +54,22 @@ td {
 }
 .H {
   border-width: 48px;
 }
 .I {
   border-width: 60px;
 }
     </style>
+    <script>
+      function doTest() {
+        document.documentElement.className='';
+      }
+      window.addEventListener("MozReftestInvalidate", doTest);
+      </script>
   </head>
   <body>
     <div class="box">
       <table>
         <tr><td class="A"></td><td class="B"></td><td class="C"></td></tr>
         <tr><td class="D"></td><td class="E"></td><td class="F"></td></tr>
         <tr><td class="G"></td><td class="H"></td><td class="I"></td></tr>
       </table>