@@ -90,7 +90,7 @@ suite('system/AudioChannelPolicy', function() {
9090 { newAudioChannel : 'alarm' , activeAudioChannels : 'ringer' } ,
9191 { newAudioChannel : 'alarm' , activeAudioChannels : 'notification' } ,
9292 { newAudioChannel : 'alarm' ,
93- activeAudioChannels : 'publicNotification ' } ,
93+ activeAudioChannels : 'publicnotification ' } ,
9494 { newAudioChannel : 'system' , activeAudioChannels : 'normal' } ,
9595 { newAudioChannel : 'system' , activeAudioChannels : 'content' } ,
9696 { newAudioChannel : 'system' , activeAudioChannels : 'alarm' } ,
@@ -99,35 +99,35 @@ suite('system/AudioChannelPolicy', function() {
9999 { newAudioChannel : 'system' , activeAudioChannels : 'telephony' } ,
100100 { newAudioChannel : 'system' , activeAudioChannels : 'notification' } ,
101101 { newAudioChannel : 'system' ,
102- activeAudioChannels : 'publicNotification ' } ,
102+ activeAudioChannels : 'publicnotification ' } ,
103103 { newAudioChannel : 'ringer' , activeAudioChannels : 'system' } ,
104104 { newAudioChannel : 'ringer' , activeAudioChannels : 'notification' } ,
105105 { newAudioChannel : 'ringer' ,
106- activeAudioChannels : 'publicNotification ' } ,
106+ activeAudioChannels : 'publicnotification ' } ,
107107 { newAudioChannel : 'telephony' , activeAudioChannels : 'system' } ,
108108 { newAudioChannel : 'telephony' , activeAudioChannels : 'ringer' } ,
109109 { newAudioChannel : 'telephony' , activeAudioChannels : 'notification' } ,
110110 { newAudioChannel : 'telephony' ,
111- activeAudioChannels : 'publicNotification ' } ,
111+ activeAudioChannels : 'publicnotification ' } ,
112112 { newAudioChannel : 'notification' , activeAudioChannels : 'alarm' } ,
113113 { newAudioChannel : 'notification' , activeAudioChannels : 'system' } ,
114114 { newAudioChannel : 'notification' , activeAudioChannels : 'ringer' } ,
115115 { newAudioChannel : 'notification' ,
116116 activeAudioChannels : 'notification' } ,
117117 { newAudioChannel : 'notification' ,
118- activeAudioChannels : 'publicNotification ' } ,
119- { newAudioChannel : 'publicNotification ' ,
118+ activeAudioChannels : 'publicnotification ' } ,
119+ { newAudioChannel : 'publicnotification ' ,
120120 activeAudioChannels : 'alarm' } ,
121- { newAudioChannel : 'publicNotification ' ,
121+ { newAudioChannel : 'publicnotification ' ,
122122 activeAudioChannels : 'system' } ,
123- { newAudioChannel : 'publicNotification ' ,
123+ { newAudioChannel : 'publicnotification ' ,
124124 activeAudioChannels : 'ringer' } ,
125- { newAudioChannel : 'publicNotification ' ,
125+ { newAudioChannel : 'publicnotification ' ,
126126 activeAudioChannels : 'telephony' } ,
127- { newAudioChannel : 'publicNotification ' ,
127+ { newAudioChannel : 'publicnotification ' ,
128128 activeAudioChannels : 'notification' } ,
129- { newAudioChannel : 'publicNotification ' ,
130- activeAudioChannels : 'publicNotification ' } ,
129+ { newAudioChannel : 'publicnotification ' ,
130+ activeAudioChannels : 'publicnotification ' } ,
131131 ] ,
132132 {
133133 newAudioChannel : {
@@ -199,9 +199,9 @@ suite('system/AudioChannelPolicy', function() {
199199 { newAudioChannel : 'telephony' , activeAudioChannels : 'alarm' } ,
200200 { newAudioChannel : 'notification' , activeAudioChannels : 'normal' } ,
201201 { newAudioChannel : 'notification' , activeAudioChannels : 'content' } ,
202- { newAudioChannel : 'publicNotification ' ,
202+ { newAudioChannel : 'publicnotification ' ,
203203 activeAudioChannels : 'normal' } ,
204- { newAudioChannel : 'publicNotification ' ,
204+ { newAudioChannel : 'publicnotification ' ,
205205 activeAudioChannels : 'content' } ,
206206 ] ,
207207 {
@@ -222,10 +222,10 @@ suite('system/AudioChannelPolicy', function() {
222222 [
223223 { newAudioChannel : 'normal' , activeAudioChannels : 'notification' } ,
224224 { newAudioChannel : 'normal' ,
225- activeAudioChannels : 'publicNotification ' } ,
225+ activeAudioChannels : 'publicnotification ' } ,
226226 { newAudioChannel : 'content' , activeAudioChannels : 'notification' } ,
227227 { newAudioChannel : 'content' ,
228- activeAudioChannels : 'publicNotification ' }
228+ activeAudioChannels : 'publicnotification ' }
229229 ] ,
230230 {
231231 newAudioChannel : {
@@ -281,11 +281,11 @@ suite('system/AudioChannelPolicy', function() {
281281 checkPolicy (
282282 [
283283 { newAudioChannel : 'alarm' , activeAudioChannels :
284- [ 'system' , 'telephony' , 'publicNotification ' ] } ,
284+ [ 'system' , 'telephony' , 'publicnotification ' ] } ,
285285 { newAudioChannel : 'ringer' , activeAudioChannels :
286- [ 'system' , 'telephony' , 'publicNotification ' ] } ,
286+ [ 'system' , 'telephony' , 'publicnotification ' ] } ,
287287 { newAudioChannel : 'notification' , activeAudioChannels :
288- [ 'system' , 'telephony' , 'publicNotification ' ] } ,
288+ [ 'system' , 'telephony' , 'publicnotification ' ] } ,
289289 ] ,
290290 {
291291 newAudioChannel : {
@@ -336,7 +336,7 @@ suite('system/AudioChannelPolicy', function() {
336336 newAudioChannel : 'normal' ,
337337 activeAudioChannels : [
338338 'content' , 'alarm' , 'system' , 'ringer' , 'telephony' ,
339- 'notification' , 'publicNotification '
339+ 'notification' , 'publicnotification '
340340 ]
341341 } ,
342342 {
@@ -353,7 +353,7 @@ suite('system/AudioChannelPolicy', function() {
353353 test ( 'All audio channel except normal audio channel ' +
354354 'can play in background' , function ( ) {
355355 [ 'content' , 'alarm' , 'system' , 'ringer' , 'telephony' ,
356- 'notification' , 'publicNotification ' ] . forEach ( function ( name ) {
356+ 'notification' , 'publicnotification ' ] . forEach ( function ( name ) {
357357 var newAudioChannel = new MockAudioChannelController (
358358 { instanceID : 'appID' } , { name : name }
359359 ) ;
@@ -392,8 +392,8 @@ suite('system/AudioChannelPolicy', function() {
392392 var isNeeded = [
393393 { activeChannelName : 'notification' , newChannelName : 'normal' } ,
394394 { activeChannelName : 'notification' , newChannelName : 'content' } ,
395- { activeChannelName : 'publicNotification ' , newChannelName : 'normal' } ,
396- { activeChannelName : 'publicNotification ' , newChannelName : 'content' }
395+ { activeChannelName : 'publicnotification ' , newChannelName : 'normal' } ,
396+ { activeChannelName : 'publicnotification ' , newChannelName : 'content' }
397397 ] . map ( function ( obj ) {
398398 return subject . _isNeededToFadeOutForNewAudioChannel (
399399 obj . activeChannelName , obj . newChannelName
@@ -407,9 +407,9 @@ suite('system/AudioChannelPolicy', function() {
407407 { activeChannelName : 'alarm' , newChannelName : 'ringer' } ,
408408 { activeChannelName : 'alarm' , newChannelName : 'telephony' } ,
409409 { activeChannelName : 'normal' , newChannelName : 'notification' } ,
410- { activeChannelName : 'normal' , newChannelName : 'publicNotification ' } ,
410+ { activeChannelName : 'normal' , newChannelName : 'publicnotification ' } ,
411411 { activeChannelName : 'content' , newChannelName : 'notification' } ,
412- { activeChannelName : 'content' , newChannelName : 'publicNotification ' }
412+ { activeChannelName : 'content' , newChannelName : 'publicnotification ' }
413413 ] . map ( function ( obj ) {
414414 return subject . _isNeededToFadeOutForActiveAudioChannel (
415415 obj . activeChannelName , obj . newChannelName
0 commit comments