bug 684176 - Intermittent failure in test_bug454235.xul | offscreen browser is not visible r=smaug
authorBrad Lassey <blassey@mozilla.com>
Tue, 13 Nov 2012 11:44:36 -0800
changeset 117792 51ee7048088aeda6a56a9b648523d7456d98a0dc
parent 117791 9558170464c0854eb9e5ce5e2c2aa9793dbf57a4
child 117793 ff8ce0a158677b4e52aff6929d64741d2585bffd
push idunknown
push userunknown
push dateunknown
reviewerssmaug
bugs684176, 454235
milestone19.0a1
bug 684176 - Intermittent failure in test_bug454235.xul | offscreen browser is not visible r=smaug
docshell/test/chrome/test_bug454235.xul
--- a/docshell/test/chrome/test_bug454235.xul
+++ b/docshell/test/chrome/test_bug454235.xul
@@ -16,17 +16,17 @@ https://bugzilla.mozilla.org/show_bug.cg
   </body>
 
   <!-- test code goes here -->
   <script type="application/javascript"><![CDATA[
 
     /** Test for Bug 454235 **/
 SimpleTest.waitForExplicitFinish();
 
-addLoadEvent(doTest);
+SimpleTest.waitForFocus(doTest);
 
 function doTest() {
   var shownBrowser = document.getElementById("shownBrowser");
   var hiddenBrowser = document.getElementById("hiddenBrowser");
   var offScreenBrowser = document.getElementById("offScreenBrowser");
   var offScreenSubBrowser = offScreenBrowser.contentDocument.getElementById("topBrowser");
   var offScreenBurriedBrowser = offScreenBrowser.contentDocument.getElementById("burriedBrowser");