Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #33581 from evanxd/bug-1230069
Browse files Browse the repository at this point in the history
Bug 1230069 - Fix test cases: public notification competes with normal and content r=lchang
  • Loading branch information
evanxd committed Dec 23, 2015
2 parents de7f09d + 5025c88 commit 2397c80
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion apps/system/js/audio_channel_service.js
Expand Up @@ -134,8 +134,10 @@
_resetAudioChannel: function(audioChannel) {
audioChannel.setPolicy({ isAllowedToPlay: false });
this._handleAudioChannel(audioChannel);
audioChannel.name === 'notification' &&
if (audioChannel.name === 'notification' ||
audioChannel.name === 'publicnotification') {
this._fadeInFadedOutAudioChannels();
}
},

/**
Expand Down
6 changes: 2 additions & 4 deletions apps/system/test/marionette/audio_channel_competing_test.js
Expand Up @@ -336,14 +336,12 @@ marionette('Audio channel competing', function() {
client, 'app://audiochanneltestapp2.gaiamobile.org');
});

// Fix it in Bug 1230069.
test.skip('Public notification channel competes with ' +
test('Public notification channel competes with ' +
'normal channel', function() {
assertPolicy4('publicnotification', 'normal');
});

// Fix it in Bug 1230069.
test.skip('Public notification channel competes with ' +
test('Public notification channel competes with ' +
'content channel', function() {
assertPolicy4('publicnotification', 'content');
});
Expand Down
4 changes: 3 additions & 1 deletion tv_apps/smart-system/js/audio_channel_service.js
Expand Up @@ -159,8 +159,10 @@
_resetAudioChannel: function(audioChannel) {
audioChannel.setPolicy({ isAllowedToPlay: false });
this._handleAudioChannel(audioChannel);
audioChannel.name === 'notification' &&
if (audioChannel.name === 'notification' ||
audioChannel.name === 'publicnotification') {
this._fadeInFadedOutAudioChannels();
}
},

/**
Expand Down

0 comments on commit 2397c80

Please sign in to comment.