Bug 986951 - Try to fix intermittent browser_tabview_bug6513111.js failures r=gavin
authorTim Taubert <ttaubert@mozilla.com>
Thu, 27 Mar 2014 17:37:17 +0100
changeset 176079 261a4ce25ddd98bbff3b2d304d8df49006a49839
parent 176078 1bf54f05992734e1db7f7a872e5d3700466bf651
child 176080 c4bd8d2d0a37d0b994603b2dbef71f061168740e
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersgavin
bugs986951, 6513111
milestone31.0a1
Bug 986951 - Try to fix intermittent browser_tabview_bug6513111.js failures r=gavin
browser/components/tabview/test/browser_tabview_bug651311.js
--- a/browser/components/tabview/test/browser_tabview_bug651311.js
+++ b/browser/components/tabview/test/browser_tabview_bug651311.js
@@ -25,14 +25,10 @@ function test() {
       finish();
     });
   });
 }
 
 function newWindow(callback) {
   let opts = "chrome,all,dialog=no,height=800,width=800";
   let win = window.openDialog(getBrowserURL(), "_blank", opts);
-
-  win.addEventListener("load", function onLoad() {
-    win.removeEventListener("load", onLoad, false);
-    callback(win);
-  }, false);
+  whenDelayedStartupFinished(win, () => callback(win));
 }