2015-05-28 10:30:03 +03:00
|
|
|
// Parent config file for all devtools browser mochitest files.
|
|
|
|
{
|
|
|
|
"rules": {
|
2015-09-30 16:44:48 +03:00
|
|
|
// Only disallow non-global unused vars, so that head.js does not produce
|
|
|
|
// errors.
|
|
|
|
"no-unused-vars": [2, {"vars": "local"}]
|
2015-05-28 10:30:03 +03:00
|
|
|
},
|
|
|
|
// All globals made available in the test environment.
|
|
|
|
"globals": {
|
|
|
|
"add_task": true,
|
|
|
|
"Assert": true,
|
2015-09-30 16:44:48 +03:00
|
|
|
"BrowserTestUtils": true,
|
2015-05-28 10:30:03 +03:00
|
|
|
"content": true,
|
2015-11-11 05:48:31 +03:00
|
|
|
"ContentTask": true,
|
2015-05-28 10:30:03 +03:00
|
|
|
"document": true,
|
|
|
|
"EventUtils": true,
|
|
|
|
"executeSoon": true,
|
|
|
|
"export_assertions": true,
|
|
|
|
"finish": true,
|
|
|
|
"gBrowser": true,
|
|
|
|
"gDevTools": true,
|
|
|
|
"getRootDirectory": true,
|
|
|
|
"getTestFilePath": true,
|
|
|
|
"gTestPath": true,
|
|
|
|
"info": true,
|
|
|
|
"is": true,
|
|
|
|
"isnot": true,
|
|
|
|
"navigator": true,
|
|
|
|
"ok": true,
|
|
|
|
"promise": true,
|
|
|
|
"registerCleanupFunction": true,
|
|
|
|
"requestLongerTimeout": true,
|
|
|
|
"setTimeout": true,
|
|
|
|
"SimpleTest": true,
|
|
|
|
"SpecialPowers": true,
|
|
|
|
"todo": true,
|
|
|
|
"todo_is": true,
|
|
|
|
"todo_isnot": true,
|
|
|
|
"waitForClipboard": true,
|
|
|
|
"waitForExplicitFinish": true,
|
|
|
|
"waitForFocus": true,
|
|
|
|
"window": true,
|
|
|
|
}
|
2015-09-30 16:44:48 +03:00
|
|
|
}
|