Bug 761980 - Make sure to register the callback after the document has loaded; r=dbaron
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 06 Jun 2012 09:28:00 -0400
changeset 98713 ac7a355cbd00c030d20d6538d9b62951944643c0
parent 98712 cd8e40687a8d98f50cebb1d7e75815ef0ad4ffd7
child 98714 d6ec24d6185819dc8244e318fd6bc37b3daaa1ff
push id1729
push userlsblakk@mozilla.com
push dateMon, 16 Jul 2012 20:02:43 +0000
treeherdermozilla-aurora@f4e75e148951 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs761980
milestone16.0a1
Bug 761980 - Make sure to register the callback after the document has loaded; r=dbaron
layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionA.html
layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionN.html
--- a/layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionA.html
+++ b/layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionA.html
@@ -21,17 +21,17 @@
           child.style.top = (parseInt(getComputedStyle(child, null).top.replace("px", "")) + 10) + "px";
           rfa(play);
           counter += 10;
         } else {
           document.documentElement.removeAttribute("class");
         }
       }
 
-      rfa(play);
+      window.onload = function() { rfa(play) };
     </script>
   </head>
   <body>
     <div id="child">
       <div class="floatLeft"></div>
       <div class="floatLeft"></div>
     </div>
   </body>
--- a/layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionN.html
+++ b/layout/reftests/position-dynamic-changes/mixed-abspos-root/mixed-dimentionN.html
@@ -21,17 +21,17 @@
           child.style.top = (parseInt(getComputedStyle(child, null).top.replace("px", "")) + 10) + "px";
           rfa(play);
           counter += 10;
         } else {
           document.documentElement.removeAttribute("class");
         }
       }
 
-      rfa(play);
+      window.onload = function() { rfa(play) };
     </script>
   </head>
   <body>
     <div id="child">
       <div class="floatLeft"></div>
       <div class="floatLeft"></div>
     </div>
   </body>