Bug 1261842 - Update browser_394759_behavior.js to account for initial browser being remote. r=mikedeboer
authorMike Conley <mconley@mozilla.com>
Wed, 01 Jun 2016 17:15:25 -0400
changeset 306304 f5427c4704bbf4cbbad6c29012d1cac7ba068a95
parent 306303 ee23a9c69693606a6731f6318e615555f4cf5685
child 306305 bcb1a7b1d60e83f10c42a042985ab121b2a75805
push id20102
push usercbook@mozilla.com
push dateMon, 25 Jul 2016 14:17:39 +0000
treeherderfx-team@66498480fe65 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmikedeboer
bugs1261842
milestone50.0a1
Bug 1261842 - Update browser_394759_behavior.js to account for initial browser being remote. r=mikedeboer 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;