Bug 936409 - Intermittent failure | chrome://mochitests/content/browser/dom/indexedDB/test/browser_perwindow_privateBrowsing.js | Test timed out. r=ehsan, a=test-only
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Sat, 14 Dec 2013 14:32:08 +0200
changeset 175290 94f7e59d5486b6cc5b008322cd44fdbbfee07770
parent 175289 186716ded600e0353cba828293c602de5522b702
child 175291 06335919612573b38a978064f32ab288913fd2b3
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, test-only
bugs936409
milestone28.0a2
Bug 936409 - Intermittent failure | chrome://mochitests/content/browser/dom/indexedDB/test/browser_perwindow_privateBrowsing.js | Test timed out. r=ehsan, a=test-only
dom/indexedDB/test/browser_perwindow_privateBrowsing.js
--- a/dom/indexedDB/test/browser_perwindow_privateBrowsing.js
+++ b/dom/indexedDB/test/browser_perwindow_privateBrowsing.js
@@ -12,16 +12,20 @@ function test()
   waitForExplicitFinish();
   executeSoon(test1);
 }
 
 function test1()
 {
   gBrowser.selectedTab = gBrowser.addTab();
   gBrowser.selectedBrowser.addEventListener("load", function () {
+    if (content.location != testPageURL) {
+      content.location = testPageURL;
+      return;
+    }
     gBrowser.selectedBrowser.removeEventListener("load", arguments.callee, true);
 
     setFinishedCallback(function(result, exception) {
       ok(result instanceof IDBDatabase,
          "First database creation was successful");
       ok(!exception, "No exception");
       gBrowser.removeCurrentTab();
 
@@ -40,16 +44,20 @@ function test2()
   }, false);
   registerCleanupFunction(function() win.close());
 }
 
 function test3(win)
 {
   win.gBrowser.selectedTab = win.gBrowser.addTab();
   win.gBrowser.selectedBrowser.addEventListener("load", function () {
+    if (win.content.location != testPageURL) {
+      win.content.location = testPageURL;
+      return;
+    }
     win.gBrowser.selectedBrowser.removeEventListener("load", arguments.callee, true);
 
     setFinishedCallback(function(result, exception) {
       ok(!result, "No database");
       is(exception, "InvalidStateError", "Correct exception");
       win.gBrowser.removeCurrentTab();
 
       executeSoon(finish);