Bug 1850991 - Update brotli to version 1.1.0. r=jfkthame
[gecko.git] / security / sandbox / test / browser_content_sandbox_fs_xdg.js
blobf5150fc3298c30a7049842931577ba1bb72760aa
1 /* Any copyright is dedicated to the Public Domain.
2  * http://creativecommons.org/publicdomain/zero/1.0/ */
3 /* import-globals-from browser_content_sandbox_utils.js */
4 "use strict";
6 Services.scriptloader.loadSubScript(
7   "chrome://mochitests/content/browser/" +
8     "security/sandbox/test/browser_content_sandbox_utils.js",
9   this
12 Services.scriptloader.loadSubScript(
13   "chrome://mochitests/content/browser/" +
14     "security/sandbox/test/browser_content_sandbox_fs_tests.js",
15   this
18 add_task(async function () {
19   // Ensure that XDG_CONFIG_HOME is there
20   const xdgConfigHome = Services.env.get("XDG_CONFIG_HOME");
21   ok(xdgConfigHome.length > 1, "XDG_CONFIG_HOME is defined");
23   // If it is there, do actual testing
24   sanityChecks();
26   // The linux only tests are the ones that can behave differently based on
27   // existence of XDG_CONFIG_HOME
28   add_task(testFileAccessLinuxOnly); // eslint-disable-line no-undef
30   add_task(cleanupBrowserTabs); // eslint-disable-line no-undef
31 });