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:
Hiroyuki Ikezoe 2019-09-25 21:17:51 +00:00
parent ab6c85987d
commit 81918ac172

View File

@ -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,
});