Bug 1439875: Update browser_windowopen_reflows.js to not wait for a resize that no longer exists. r=florian
☠☠ backed out by c43177719f36 ☠ ☠
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 15 Mar 2018 21:21:33 +1100
changeset 408285 f8e091577d2a5ef75946c156b7baa629b2616e0f
parent 408284 1ee5a2d21901c12519cc2ff692964233e34aba48
child 408286 9c764daa1234d04b3d2e080f4e33535aec481d91
push id33631
push usernerli@mozilla.com
push dateThu, 15 Mar 2018 17:35:14 +0000
treeherdermozilla-central@6b1c76b8daf5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs1439875
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1439875: Update browser_windowopen_reflows.js to not wait for a resize that no longer exists. r=florian MozReview-Commit-ID: Jln9ejZh2b6
browser/base/content/test/performance/browser_windowopen_reflows.js
--- a/browser/base/content/test/performance/browser_windowopen_reflows.js
+++ b/browser/base/content/test/performance/browser_windowopen_reflows.js
@@ -57,19 +57,15 @@ add_task(async function() {
   // opened in previous tests.
   Services.obs.notifyObservers(null, "startupcache-invalidate");
   Services.obs.notifyObservers(null, "chrome-flush-skin-caches");
   Services.obs.notifyObservers(null, "chrome-flush-caches");
 
   let win = OpenBrowserWindow();
 
   await withReflowObserver(async function() {
-    let resizeEvent = BrowserTestUtils.waitForEvent(win, "resize");
-    let delayedStartup =
-      TestUtils.topicObserved("browser-delayed-startup-finished",
-                              subject => subject == win);
-    await resizeEvent;
-    await delayedStartup;
+    await TestUtils.topicObserved("browser-delayed-startup-finished",
+                                  subject => subject == win);
   }, EXPECTED_REFLOWS, win);
 
   await BrowserTestUtils.closeWindow(win);
 });