Bug 1220124 - Add support for chrome.tabs.onhighlight. Followup: fix code style to pass eslint. r=kmag over IRC
☠☠ backed out by 7882aa8df614 ☠ ☠
authorSebastian Hengst <archaeopteryx@coole-files.de>
Mon, 29 Feb 2016 00:34:01 +0100
changeset 285923 764c86198573e102dd4fdc2c48a6e760dcdfe882
parent 285922 7fefbc8e44b87963e30f652a07ade9a63deb6754
child 285924 16d458be65b39e5e4851e1328e1f8ec9a924db6d
push id72579
push userarchaeopteryx@coole-files.de
push dateSun, 28 Feb 2016 23:34:30 +0000
treeherdermozilla-inbound@764c86198573 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag
bugs1220124
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1220124 - Add support for chrome.tabs.onhighlight. Followup: fix code style to pass eslint. r=kmag over IRC
browser/components/extensions/test/browser/browser_ext_tabs_onHighlighted.js
--- a/browser/components/extensions/test/browser/browser_ext_tabs_onHighlighted.js
+++ b/browser/components/extensions/test/browser/browser_ext_tabs_onHighlighted.js
@@ -52,44 +52,44 @@ add_task(function* testTabEvents() {
         delete events[tabId];
       });
     }
 
     /**
      * 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, [
           "onActivated",
           "onHighlighted",
         ]);
       });
     }
 
     /**
      * Highlights an existing tab and asserts that the correct events are fired.
      */
     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",
           "onHighlighted",
         ]);
       });
     }
 
     /**
      * 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),
         openTab(activeWindow),
         openTab(activeWindow),
       ]).then(() => {
         return Promise.all([
           highlightTab(tabIds[0]),