From e40dfe5627f0cbb1d5efad03397ce58969996266 Mon Sep 17 00:00:00 2001 From: Brad Werth Date: Mon, 6 Mar 2023 19:38:11 +0000 Subject: [PATCH] Bug 1631735 Part 3: Update test expectations to note macOS transitions are async. r=mstange Differential Revision: https://phabricator.services.mozilla.com/D170841 --- widget/tests/test_sizemode_events.xhtml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/widget/tests/test_sizemode_events.xhtml b/widget/tests/test_sizemode_events.xhtml index 05148ba83e5e8..bd1e3a38d1aee 100644 --- a/widget/tests/test_sizemode_events.xhtml +++ b/widget/tests/test_sizemode_events.xhtml @@ -24,8 +24,9 @@ const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; let gWindow = null; const kIsLinux = navigator.platform.includes("Lin"); -// On Linux sizemode changes might be async. -const kAsyncChanges = kIsLinux; +const kIsMacOS = navigator.platform.includes("Mac"); +// On Linux and macOS sizemode changes might be async. +const kAsyncChanges = kIsLinux || kIsMacOS; let gSizeModeDidChange = false; let gSizeModeDidChangeTo = 0;