Bug 1193134 - Run test_click_on_pinned_tab_after_mute independently. r=jaws, a=test-only
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 10 Aug 2015 23:40:05 -0400
changeset 288776 4b0cd09a97aa521315f36b527a191454197ea455
parent 288775 e552f33beec4f7ea096a83ea036d364dcb752270
child 288777 b44a8c68fc600b7e446aa1fbafde6c3d7bbf6b91
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, test-only
bugs1193134
milestone42.0a2
Bug 1193134 - Run test_click_on_pinned_tab_after_mute independently. r=jaws, a=test-only This way the function runs after all of the tabs from the previous function have been closed, and since this test is independent, it would be better for it to be isolated.
browser/base/content/test/general/browser_audioTabIcon.js
--- a/browser/base/content/test/general/browser_audioTabIcon.js
+++ b/browser/base/content/test/general/browser_audioTabIcon.js
@@ -243,18 +243,16 @@ function* test_on_browser(browser) {
   // Retest with another browser in the foreground tab
   if (gBrowser.selectedBrowser.currentURI.spec == PAGE) {
     yield BrowserTestUtils.withNewTab({
       gBrowser,
       url: "data:text/html,test"
     }, () => test_on_browser(browser));
   } else {
     yield test_browser_swapping(tab, browser);
-
-    yield test_click_on_pinned_tab_after_mute();
   }
 }
 
 add_task(function*() {
   yield new Promise((resolve) => {
     SpecialPowers.pushPrefEnv({"set": [
                                 ["media.useAudioChannelService", true],
                                 ["browser.tabs.showAudioPlayingIcon", true],
@@ -263,8 +261,10 @@ add_task(function*() {
 });
 
 add_task(function* test_page() {
   yield BrowserTestUtils.withNewTab({
     gBrowser,
     url: PAGE
   }, test_on_browser);
 });
+
+add_task(test_click_on_pinned_tab_after_mute);