From 56c802b5e8465d880aa9a05fede4d7a268f2374e Mon Sep 17 00:00:00 2001 From: Sebastian Hengst Date: Mon, 29 Feb 2016 00:34:01 +0100 Subject: [PATCH] Bug 1220124 - Add support for chrome.tabs.onhighlight. Followup: fix code style to pass eslint. r=kmag over IRC --- .../test/browser/browser_ext_tabs_onHighlighted.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/browser/components/extensions/test/browser/browser_ext_tabs_onHighlighted.js b/browser/components/extensions/test/browser/browser_ext_tabs_onHighlighted.js index 21af8222e425..2081c603ca6d 100644 --- a/browser/components/extensions/test/browser/browser_ext_tabs_onHighlighted.js +++ b/browser/components/extensions/test/browser/browser_ext_tabs_onHighlighted.js @@ -57,7 +57,7 @@ add_task(function* testTabEvents() { * Opens a new tab and asserts that the correct events are fired. */ function openTab(windowId) { - return browser.tabs.create({ windowId }).then(tab => { + return browser.tabs.create({windowId}).then(tab => { tabIds.push(tab.id); browser.test.log(`Opened tab ${tab.id}`); return expectEvents(tab.id, [ @@ -72,7 +72,7 @@ add_task(function* testTabEvents() { */ function highlightTab(tabId) { browser.test.log(`Highlighting tab ${tabId}`); - return browser.tabs.update(tabId, { active: true }).then(tab => { + return browser.tabs.update(tabId, {active: true}).then(tab => { browser.test.assertEq(tab.id, tabId, `Tab ${tab.id} highlighted`); return expectEvents(tab.id, [ "onActivated", @@ -84,7 +84,7 @@ add_task(function* testTabEvents() { /** * The main entry point to the tests. */ - browser.tabs.query({ active: true, currentWindow: true }, tabs => { + browser.tabs.query({active: true, currentWindow: true}, tabs => { let activeWindow = tabs[0].windowId; Promise.all([ openTab(activeWindow),