Fix browser_394759_behavior.js draft
authorMike Conley <mconley@mozilla.com>
Wed, 01 Jun 2016 17:15:25 -0400
changeset 374665 717b56345830a26af102658d7f69f8666b42dcbb
parent 374664 e5aecb65f3108f601691f6b5bf1491c2dbe4a063
child 374666 f054cbd6eaa6985ee8e443e27d7356a927e65f99
push id20055
push usermconley@mozilla.com
push dateThu, 02 Jun 2016 19:00:42 +0000
milestone49.0a1
Fix browser_394759_behavior.js MozReview-Commit-ID: H1A4bzARkyf
browser/components/sessionstore/test/browser_394759_behavior.js
--- a/browser/components/sessionstore/test/browser_394759_behavior.js
+++ b/browser/components/sessionstore/test/browser_394759_behavior.js
@@ -21,20 +21,19 @@
  */
 function testWindows(windowsToOpen, expectedResults) {
   return Task.spawn(function*() {
     for (let winData of windowsToOpen) {
       let features = "chrome,dialog=no," +
                      (winData.isPopup ? "all=no" : "all");
       let url = "http://example.com/?window=" + windowsToOpen.length;
 
-      let openWindowPromise = BrowserTestUtils.waitForNewWindow();
+      let openWindowPromise = BrowserTestUtils.waitForNewWindow(true, url);
       openDialog(getBrowserURL(), "", features, url);
       let win = yield openWindowPromise;
-      yield BrowserTestUtils.browserLoaded(win.gBrowser.selectedBrowser);
       yield BrowserTestUtils.closeWindow(win);
     }
 
     let closedWindowData = JSON.parse(ss.getClosedWindowData());
     let numPopups = closedWindowData.filter(function(el, i, arr) {
       return el.isPopup;
     }).length;
     let numNormal = ss.getClosedWindowCount() - numPopups;