Commit e88dc365 authored by Emilio Cobos Álvarez's avatar Emilio Cobos Álvarez
Browse files

Bug 1763396 - Force toolbar-theme to system in a test, to fix it on devedition...

Bug 1763396 - Force toolbar-theme to system in a test, to fix it on devedition where dark theme is the default.

Differential Revision: https://phabricator.services.mozilla.com/D143105
parent f33f9c71
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -90,7 +90,12 @@

      add_task(async function test_browser_color_scheme_dynamic_system() {
        for (let dark of [true, false]) {
          await SpecialPowers.pushPrefEnv({ set: [["ui.systemUsesDarkTheme", dark ? 1 : 0]] });
          await SpecialPowers.pushPrefEnv({
            set: [
              ["browser.theme.toolbar-theme", 2],
              ["ui.systemUsesDarkTheme", dark ? 1 : 0],
            ]
          });
          await tick();
          await testElement("dynamic-test", dark ? "dark" : "light");
          await SpecialPowers.popPrefEnv();