Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: browser/components/tests/unit/xpcshell.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
const gBrowserGlue = Cc["@mozilla.org/browser/browserglue;1"].getService(
Ci.nsIObserver
);
add_setup(() => {
registerCleanupFunction(() => {
Services.prefs.clearUserPref("browser.fixup.alternate.enabled");
});
});
add_task(async function browser_fixup_alternate_enabled() {
Services.prefs.setBoolPref("browser.fixup.alternate.enabled", true);
Services.prefs.setIntPref("browser.migration.version", 139);
gBrowserGlue.observe(null, "browser-glue-test", "force-ui-migration");
Assert.ok(
!Services.prefs.getBoolPref("browser.fixup.alternate.enabled", false),
"browser.fixup.alternate.enabled pref should be cleared"
);
});