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 103430 b431f498a9baa3cdf126608523222a4e9cac4dc6
parent 103429 573c753b7bc806585fac9ccb3499d0b66499c9b5
child 103431 7ef5b8b2c2c72582d852887b1772268747fe0c56
push id13986
push userjlebar@mozilla.com
push dateSat, 25 Aug 2012 22:24:43 +0000
treeherdermozilla-inbound@7ef5b8b2c2c7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs775009
milestone17.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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;