equal
deleted
inserted
replaced
|
1 Tests.prototype.NotificationTests = function() { |
|
2 module('Notification (navigator.notification)'); |
|
3 test("should exist", function() { |
|
4 expect(1); |
|
5 ok(navigator.notification != null, "navigator.notification should not be null."); |
|
6 }); |
|
7 test("should contain a vibrate function", function() { |
|
8 expect(2); |
|
9 ok(typeof navigator.notification.vibrate != 'undefined' && navigator.notification.vibrate != null, "navigator.notification.vibrate should not be null."); |
|
10 ok(typeof navigator.notification.vibrate == 'function', "navigator.notification.vibrate should be a function."); |
|
11 }); |
|
12 test("should contain a beep function", function() { |
|
13 expect(2); |
|
14 ok(typeof navigator.notification.beep != 'undefined' && navigator.notification.beep != null, "navigator.notification.beep should not be null."); |
|
15 ok(typeof navigator.notification.beep == 'function', "navigator.notification.beep should be a function."); |
|
16 }); |
|
17 }; |