Bug 688897 - Add MozReftestInvalidate handler to fix orange. r=jmuizelaar a=lsblakk
authorMats Palmgren <matspal@gmail.com>
Tue, 22 May 2012 07:37:53 +0200
changeset 92613 737826ff7a0c8a34fd1371e9b526f5ec2c8a1bef
parent 92612 9e63a64ef822fe0155cce7a74e8953325113d2b2
child 92614 22cfcc3205128e16a2851e2e6a4053763975d77e
push id136
push userlsblakk@mozilla.com
push dateFri, 01 Jun 2012 02:39:32 +0000
treeherdermozilla-release@7ebf7352c959 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmuizelaar, lsblakk
bugs688897
milestone13.0
Bug 688897 - Add MozReftestInvalidate handler to fix orange. r=jmuizelaar a=lsblakk
layout/reftests/border-image/470250-2.html
--- a/layout/reftests/border-image/470250-2.html
+++ b/layout/reftests/border-image/470250-2.html
@@ -1,15 +1,23 @@
 <!doctype html>
-<html><head>
+<html class="reftest-wait"><head>
 <title>border-image, only middle part, table cell, testcase</title>
 <style>
 table {
   width: 48px;
   height: 48px;
   border-collapse: separate;
   -moz-border-image: url(3x3green-1DD813.png) 0 / 0;
 }
 </style>
 </head><body>
+<iframe src="3x3green-1DD813.png" width="48" height="48"></iframe>
 <table>
 </table>
+<script>
+  window.addEventListener("MozReftestInvalidate",
+    function() {
+      document.getElementsByTagName("iframe")[0].style.display = "none";
+      document.documentElement.className = "";
+    }, false);
+</script>
 </body></html>