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 167715 8dfe78bce537aa02f1bff509e2002ad3a0c0541c
parent 167714 d453d9c5d9165cfdd86327450137ab2ac05dd1fb
child 167716 083dd14d4659d784b3107cf10acd6b23316c9fe3
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, test-only
bugs936409
milestone27.0
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);