Bug 775009 - Part 1: Fix test broken by part 2. r=bz
authorJustin Lebar <justin.lebar@gmail.com>
Sat, 25 Aug 2012 18:23:53 -0400
changeset 105494 b431f498a9baa3cdf126608523222a4e9cac4dc6
parent 105493 573c753b7bc806585fac9ccb3499d0b66499c9b5
child 105495 7ef5b8b2c2c72582d852887b1772268747fe0c56
push id55
push usershu@rfrn.org
push dateThu, 30 Aug 2012 01:33:09 +0000
reviewersbz
bugs775009
milestone17.0a1
Bug 775009 - Part 1: Fix test broken by part 2. r=bz
dom/tests/mochitest/whatwg/test_bug500328.html
--- a/dom/tests/mochitest/whatwg/test_bug500328.html
+++ b/dom/tests/mochitest/whatwg/test_bug500328.html
@@ -111,17 +111,17 @@ function onChildLoad(e) {
     statusMsg("Got load for " + getURLFromEvent(e) + ", but not calling gGen.next() because gCallbackOnIframeLoad was false.");
   }
 }
 
 function onChildPageShow(e) {
   if(gCallbackOnIframePageShow) {
     statusMsg("Got pageshow for " + getURLFromEvent(e) + ".  About to call gGen.next().");
     gCallbackOnIframePageShow = false;
-    gGen.next();
+    SimpleTest.executeSoon(function() { gGen.next(); });
   }
   else {
     statusMsg("Got pageshow for " + getURLFromEvent(e) + ", but not calling gGen.next() because gCallbackOnIframePageShow was false.");
   }
 }
 
 function enableChildLoadCallback() {
   gCallbackOnIframeLoad = true;