Bug 617152. Part 1: fix 424465-1 test. r=dbaron
authorRobert O'Callahan <robert@ocallahan.org>
Mon, 20 Dec 2010 14:26:14 +1300
changeset 59483 f1ac5add876dcc639fe7b5eff6186514df88e356
parent 59482 8019b50e514c708e3b633da8b4c394edd4a27f0b
child 59484 07451ea7a0ca7fc3704a4d953a30c56bfa24a6b3
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersdbaron
bugs617152, 424465
milestone2.0b9pre
Bug 617152. Part 1: fix 424465-1 test. r=dbaron
layout/reftests/bugs/424465-1.html
--- a/layout/reftests/bugs/424465-1.html
+++ b/layout/reftests/bugs/424465-1.html
@@ -10,25 +10,27 @@
       border: 1px solid #000000; 
       margin-bottom: 3px; /* Remove this line and bug disappears */
       }  
     </style>  
 
     <script type="text/javascript">
     //<![CDATA[
 
-    window.addEventListener("MozReftestInvalidate",
-      function() {
-        showBug();
+    window.addEventListener("MozReftestInvalidate", showBug, false);
+
+    function imageLoaded()
+    {
         document.documentElement.className = "";
-      }, false);
+    }
 
     function showBug()
     {
-		document.getElementById("hiddenColumnBugged").innerHTML = "<div>.: See the bug ? :.<br /><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAAATCAIAAAB0hvS3AAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6AAAdTAAAOpgAAA6lwAAF2+XqZnUAAAAuUlEQVR4nGJkYPjPMApGwWACAAHENNAOGAWjAB0ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABBgAsywBJafN/+UAAAAASUVORK5CYII=' /><\/div>";
+		document.getElementById("hiddenColumnBugged").innerHTML =
+            "<div>.: See the bug ? :.<br /><img onload='imageLoaded()' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAAATCAIAAAB0hvS3AAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6AAAdTAAAOpgAAA6lwAAF2+XqZnUAAAAuUlEQVR4nGJkYPjPMApGwWACAAHENNAOGAWjAB0ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABNBoohwFgw4ABBgAsywBJafN/+UAAAAASUVORK5CYII=' /><\/div>";
     }
 
     //]]>
     </script>
 
   </head>
 
   <body>