Adding missing timeout property, changing others to be properties instead of functions, spelling fixes

This commit is contained in:
Chris Barr
2015-05-12 08:13:37 -04:00
parent bba34156c1
commit 75f03d73ce
2 changed files with 22 additions and 9 deletions
+4 -2
View File
@@ -14,6 +14,7 @@ function test_Notify_constructor() {
body : "fuga",
icon : "./logo.png",
tag : "user",
timeout: 2,
notifyShow : (e:Event)=> console.log("notifyShow", e),
notifyClose : ()=> console.log("notifyClose"),
notifyClick : ()=> console.log("notifyClick"),
@@ -26,9 +27,10 @@ function test_Notify_constructor() {
}
function test_Notify_static_methods() {
Notify.needsPermission();
Notify.needsPermission;
Notify.requestPermission();
Notify.requestPermission(()=> console.log("onPermissionGrantedCallback"));
Notify.requestPermission(()=> console.log("onPermissionGrantedCallback"), ()=> console.log("onPermissionDeniedCallback"));
Notify.isSupported();
Notify.isSupported;
Notify.permissionLevel;
}