Bug 1631735 Part 3: Update test expectations to note macOS transitions are async. r=mstange
authorBrad Werth <bwerth@mozilla.com>
Mon, 06 Mar 2023 19:38:11 +0000 (2023-03-06)
changeset 655483 8201fa6c615652109ecc06d4ca7c164844c75da3
parent 655482 98df31ea18e224a8fbd73926289fae3de8d11d8d
child 655484 168ec9dca708f3302ecb3c912e591197daf0c878
push id179734
push userbwerth@mozilla.com
push dateMon, 06 Mar 2023 19:41:32 +0000 (2023-03-06)
treeherderautoland@168ec9dca708 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1631735
milestone112.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 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
--- a/widget/tests/test_sizemode_events.xhtml
+++ b/widget/tests/test_sizemode_events.xhtml
@@ -19,18 +19,19 @@
 <script class="testbody">
 <![CDATA[
 
 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;
 
 function sizemodeChanged(e) {
   gSizeModeDidChange = true;
   gSizeModeDidChangeTo = gWindow.windowState;
 }