Bug 1225215: Follow-up: ESLint fix. r=me

MozReview-Commit-ID: WP5idmrVE6
This commit is contained in:
Kris Maglione 2016-08-14 20:05:07 -07:00
Родитель d586aee8fd
Коммит 9462ff7027
2 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -685,6 +685,15 @@ global.TabManager = {
* Returns the XUL <tab> element associated with the given tab ID. If no tab
* with the given ID exists, and no default value is provided, an error is
* raised, belonging to the scope of the given context.
*
* @param {integer} tabId
* The ID of the tab to retrieve.
* @param {ExtensionContext} context
* The context of the caller.
* @param {*} default_
* The value to return if no tab exists with the given ID.
* @returns {Element<tab>}
* A XUL <tab> element.
*/
getTab(tabId, context, default_ = undefined) {
// FIXME: Speed this up without leaking memory somehow.

Просмотреть файл

@ -60,7 +60,7 @@ function* runTests(options) {
let checkError = e => {
browser.test.assertTrue(e.message.includes(`Invalid tab ID: ${tabId}`),
`Expected invalid tab ID error, got ${e}`);
}
};
try {
call().then(() => {
browser.test.fail(`Expected call to fail: ${call}`);