fixup! WIP draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 23 Feb 2018 15:58:03 +0100
changeset 759145 079089fb99b25ec631aa93b28521ab596a7a7c03
parent 759144 87b0d69f4dff08050fd1b7dc7b301a58012ec15c
child 759146 963dd1cf4c0e633309ab5c30d05b767821cdefb1
push id100275
push userbmo:emilio@crisal.io
push dateFri, 23 Feb 2018 18:33:59 +0000
milestone60.0a1
fixup! WIP
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);
 });