Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
// Parent config file for all mochitest files.
export default {
env: {
browser: true,
"mozilla/browser-window": true,
},
// All globals made available in the test environment.
globals: {
// SpecialPowers is injected into the window object via SimpleTest.js
SpecialPowers: false,
afterEach: false,
beforeEach: false,
describe: false,
extractJarToTmp: false,
getChromeDir: false,
getJar: false,
getResolvedURI: false,
getRootDirectory: false,
it: false,
},
name: "mozilla/chrome-test",
plugins: ["mozilla"],
rules: {
// We mis-predict globals for HTML test files in directories shared
// with browser tests.
"mozilla/no-redeclare-with-import-autofix": "off",
},
};