Bug 1245916: Add additional default globals. r=felipe

This defines a few additional globals but also turns on the browser environment
for everything in browser and toolkit. This may lead to some false negatives
but we have lots of code that runs in a browser context so in the name of
getting rules turned on I think this is a useful step.

MozReview-Commit-ID: BdWouZGK6d
This commit is contained in:
Dave Townsend 2016-02-05 12:12:30 -08:00
parent 9d4c7a1cd4
commit 8872900b27
3 changed files with 20 additions and 5 deletions

View File

@ -14,11 +14,16 @@
"add_task": false,
"Assert": false,
"BrowserTestUtils": false,
"content": false,
"ContentTask": false,
"ContentTaskUtils": false,
"EventUtils": false,
"executeSoon": false,
"expectUncaughtException": false,
"export_assertions": false,
"extractJarToTmp": false,
"finish": false,
"getJar": false,
"getRootDirectory": false,
"getTestFilePath": false,
"gTestPath": false,
@ -37,10 +42,5 @@
"waitForClipboard": false,
"waitForExplicitFinish": false,
"waitForFocus": false,
"gBrowser": false,
"gNavToolbox": false,
"gURLBar": false,
"gNavigatorBundle": false,
"content": false,
}
}

View File

@ -24,12 +24,14 @@
"do_parse_document": false,
"do_print": false,
"do_register_cleanup": false,
"do_report_unexpected_exception": false,
"do_test_finished": false,
"do_test_pending": false,
"do_throw": false,
"do_timeout": false,
"equal": false,
"load": false,
"mozinfo": false,
"notDeepEqual": false,
"notEqual": false,
"notStrictEqual": false,
@ -37,5 +39,8 @@
"run_next_test": false,
"run_test": false,
"strictEqual": false,
"todo": false,
"todo_check_false": false,
"todo_check_true": false,
}
}

View File

@ -192,5 +192,15 @@
// Only check typeof against valid results
"valid-typeof": 2,
},
"env": {
"es6": true,
"browser": true,
},
"globals": {
"Components": false,
"dump": true,
"openDialog": false,
"sizeToContent": false,
}
}