Bug 1439875: Update browser_windowopen_reflows.js to not wait for a resize that no longer exists. r=florian draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 26 Feb 2018 14:09:20 +0100
changeset 766848 8a5fac0633423a8bfdbd6772d604ddc14d9209e6
parent 766847 21de93e48d94ae56a333e0ab36effcbd6bdf94e3
child 766849 cf7bc2c26f43146877599c98fd4d12d462b2a398
child 766881 56966af4fc7078b55f8edde829d47a6cb7d9da62
push id102414
push userbmo:emilio@crisal.io
push dateTue, 13 Mar 2018 13:33:32 +0000
reviewersflorian
bugs1439875
milestone61.0a1
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);
 });