mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1582946 - Skip whole test cases in browser_deck_has_out_of_process_iframe.js if fission.autostart pref is locked. r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D47031 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
ab6c85987d
commit
81918ac172
@ -4,6 +4,10 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
const { Preferences } = ChromeUtils.import(
|
||||
"resource://gre/modules/Preferences.jsm"
|
||||
);
|
||||
|
||||
const DIRPATH = getRootDirectory(gTestPath).replace(
|
||||
"chrome://mochitests/content/",
|
||||
""
|
||||
@ -17,6 +21,15 @@ const parentURL = `http://example.com/${parentPATH}`;
|
||||
const iframeURL = `http://example.org/${iframePATH}`;
|
||||
|
||||
add_task(async function() {
|
||||
if (Preferences.locked("fission.autostart")) {
|
||||
ok(
|
||||
true,
|
||||
"fission.autostart pref is locked on this channel which means " +
|
||||
"we don't need to run the following tests"
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
const win = await BrowserTestUtils.openNewBrowserWindow({
|
||||
fission: true,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user