Release Vulpes OS 2.7 Preview 25 for Desktop, Android and Pixel 3a
This commit is contained in:
parent
6a44daeaaa
commit
3a1fba4efe
1 changed files with 1301 additions and 196 deletions
|
|
@ -48,3 +48,18 @@ test('Gaia notification sound and vibration respect per-notification flags',()=>
|
|||
show({novibrate:true});assert.equal(events.sound,1);assert.equal(events.vibration,1);
|
||||
show({});assert.equal(events.sound,2);assert.equal(events.vibration,2);
|
||||
});
|
||||
|
||||
test('a scalable icon entry does not discard available numbered notification icons',()=>{
|
||||
const store=new Notifications();
|
||||
const mixed={...app,manifest:{icons:{any:'/vector.svg',128:'/small.png',256:'/large.png'}}};
|
||||
assert.equal(store.show(mixed,{}).icon,app.origin+'/large.png');
|
||||
assert.equal(store.show({...app,manifest:{icons:{any:'/vector.svg'}}},{}).icon,app.origin+'/vector.svg');
|
||||
});
|
||||
|
||||
test('invalid optional icon cannot discard a notification',()=>{
|
||||
const store=new Notifications();
|
||||
const row=store.show(app,{title:'Message',icon:'http://['});
|
||||
assert.equal(row.title,'Message');
|
||||
assert.equal(row.icon,app.origin+'/sms.png');
|
||||
assert.equal(store.list().length,1);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue