Bug 1023344 - Use MozReftestInvalidate to make 876074-1.html's behavior more reliable. r=mats, a=test-only
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 05 Sep 2014 15:03:59 -0700
changeset 224741 2c5b7e555d98755721f5c455f92b51d39b682a23
parent 224740 62b95031250a3dea5908c22e9d8c0b90f1c58c2f
child 224742 75cc57d2df9b6a802bcc893828ad0cf374466c00
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmats, test-only
bugs1023344, 876074
milestone34.0a2
Bug 1023344 - Use MozReftestInvalidate to make 876074-1.html's behavior more reliable. r=mats, a=test-only
layout/generic/crashtests/876074-1.html
--- a/layout/generic/crashtests/876074-1.html
+++ b/layout/generic/crashtests/876074-1.html
@@ -1,17 +1,20 @@
 <!DOCTYPE html>
-<html>
+<html class="reftest-wait">
 <head>
 <meta charset="UTF-8">
 <script>
 
 function boom()
 {
     document.getElementById("c").style.content = "'x'";
+    document.documentElement.removeAttribute("class");
 }
 
+window.addEventListener("MozReftestInvalidate", boom, false);
+
 </script>
 </head>
 
-<body style="display: inline-flex;" onload="boom();"><div></div><div style="display: table-caption;"></div><canvas id="c"></canvas></body>
+<body style="display: inline-flex;"><div></div><div style="display: table-caption;"></div><canvas id="c"></canvas></body>
 
 </html>