From 09a6c0ebd19a9ca733481bc73a4181a9b0e00bda Mon Sep 17 00:00:00 2001 From: Brad Werth Date: Fri, 27 Dec 2019 07:02:36 +0000 Subject: [PATCH] Bug 1604216 Part 1: Make test browser_orientationchange_event.js properly await reload. r=mtigley Differential Revision: https://phabricator.services.mozilla.com/D58035 --HG-- extra : moz-landing-system : lando --- .../test/browser/browser_orientationchange_event.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devtools/client/responsive/test/browser/browser_orientationchange_event.js b/devtools/client/responsive/test/browser/browser_orientationchange_event.js index 2bcf622f2f77..437d7af4499e 100644 --- a/devtools/client/responsive/test/browser/browser_orientationchange_event.js +++ b/devtools/client/responsive/test/browser/browser_orientationchange_event.js @@ -61,7 +61,9 @@ addRDMTask(TEST_URL, async function({ ui }) { info("Check that the viewport orientation values persist after reload"); const browser = ui.getViewportBrowser(); - await browser.reload(); + const reload = waitForViewportLoad(ui); + browser.reload(); + await reload; await SpecialPowers.spawn(ui.getViewportBrowser(), [], async function() { info("Check that we still have the previous orientation values.");