Skip to content

Commit

Permalink
Bug 1631735 Part 3: Update test expectations to note macOS transition…
Browse files Browse the repository at this point in the history
…s are async. r=mstange

Differential Revision: https://phabricator.services.mozilla.com/D170841
  • Loading branch information
bradwerth committed Mar 6, 2023
1 parent b2d778e commit e40dfe5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions widget/tests/test_sizemode_events.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e40dfe5

Please sign in to comment.