diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:00:38 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:00:38 -0500 |
commit | 8148615da179fdd60f19018e13b4e94b95609cc6 (patch) | |
tree | 771fccdd99fa3adf35fdd2c81d8197b415a89b91 /browser/modules/test/browser_BrowserUITelemetry_sidebar.js | |
parent | 494802c1be7888025b95260d23db187467d2b9dd (diff) | |
download | UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.gz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.lz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.xz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.zip |
Remove browser tests - Part 1: The Tests (except for experiments)
Diffstat (limited to 'browser/modules/test/browser_BrowserUITelemetry_sidebar.js')
-rw-r--r-- | browser/modules/test/browser_BrowserUITelemetry_sidebar.js | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/browser/modules/test/browser_BrowserUITelemetry_sidebar.js b/browser/modules/test/browser_BrowserUITelemetry_sidebar.js deleted file mode 100644 index 5f19eabd5..000000000 --- a/browser/modules/test/browser_BrowserUITelemetry_sidebar.js +++ /dev/null @@ -1,56 +0,0 @@ -// Test the sidebar counters in BrowserUITelemetry. -"use strict"; - -const { BrowserUITelemetry: BUIT } = Cu.import("resource:///modules/BrowserUITelemetry.jsm", {}); - -add_task(function* testSidebarOpenClose() { - // Reset BrowserUITelemetry's world. - BUIT._countableEvents = {}; - - yield SidebarUI.show("viewTabsSidebar"); - - let counts = BUIT._countableEvents[BUIT.currentBucket]; - - Assert.deepEqual(counts, { sidebar: { viewTabsSidebar: { show: 1 } } }); - yield SidebarUI.hide(); - Assert.deepEqual(counts, { sidebar: { viewTabsSidebar: { show: 1, hide: 1 } } }); - - yield SidebarUI.show("viewBookmarksSidebar"); - Assert.deepEqual(counts, { - sidebar: { - viewTabsSidebar: { show: 1, hide: 1 }, - viewBookmarksSidebar: { show: 1 }, - } - }); - // Re-open the tabs sidebar while bookmarks is open - bookmarks should - // record a close. - yield SidebarUI.show("viewTabsSidebar"); - Assert.deepEqual(counts, { - sidebar: { - viewTabsSidebar: { show: 2, hide: 1 }, - viewBookmarksSidebar: { show: 1, hide: 1 }, - } - }); - yield SidebarUI.hide(); - Assert.deepEqual(counts, { - sidebar: { - viewTabsSidebar: { show: 2, hide: 2 }, - viewBookmarksSidebar: { show: 1, hide: 1 }, - } - }); - // Toggle - this will re-open viewTabsSidebar - yield SidebarUI.toggle("viewTabsSidebar"); - Assert.deepEqual(counts, { - sidebar: { - viewTabsSidebar: { show: 3, hide: 2 }, - viewBookmarksSidebar: { show: 1, hide: 1 }, - } - }); - yield SidebarUI.toggle("viewTabsSidebar"); - Assert.deepEqual(counts, { - sidebar: { - viewTabsSidebar: { show: 3, hide: 3 }, - viewBookmarksSidebar: { show: 1, hide: 1 }, - } - }); -}); |