зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1225215: Follow-up: ESLint fix. r=me
MozReview-Commit-ID: WP5idmrVE6
This commit is contained in:
Родитель
d586aee8fd
Коммит
9462ff7027
|
@ -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}`);
|
||||
|
|
Загрузка…
Ссылка в новой задаче