OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Notifications: Property reflection in the "notificationclick" event a
nd SWR.getNotifications().</title> | 4 <title>Notifications: Property reflection in the "notificationclick" event a
nd SWR.getNotifications().</title> |
5 <script src="../resources/testharness.js"></script> | 5 <script src="../resources/testharness.js"></script> |
6 <script src="../resources/testharnessreport.js"></script> | 6 <script src="../resources/testharnessreport.js"></script> |
7 <script src="../serviceworker/resources/test-helpers.js"></script> | 7 <script src="../serviceworker/resources/test-helpers.js"></script> |
8 <script src="resources/test-helpers.js"></script> | 8 <script src="resources/test-helpers.js"></script> |
9 </head> | 9 </head> |
10 <body> | 10 <body> |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 var options = { | 31 var options = { |
32 title: scope, | 32 title: scope, |
33 dir: 'rtl', | 33 dir: 'rtl', |
34 lang: 'nl-NL', | 34 lang: 'nl-NL', |
35 body: 'Hello, world!', | 35 body: 'Hello, world!', |
36 tag: 'tag', | 36 tag: 'tag', |
37 // FIXME: Relative URLs for the icon attribute currently get refle
cted as | 37 // FIXME: Relative URLs for the icon attribute currently get refle
cted as |
38 // an absolute URL, which should probably be the given relative UR
L. | 38 // an absolute URL, which should probably be the given relative UR
L. |
39 icon: 'https://example/icon.png', | 39 icon: 'https://example/icon.png', |
| 40 badge: 'https://example/badge.png', |
40 vibrate: [100, 200, 300], | 41 vibrate: [100, 200, 300], |
41 timestamp: 621046800000, | 42 timestamp: 621046800000, |
42 renotify: true, | 43 renotify: true, |
43 silent: false, | 44 silent: false, |
44 requireInteraction: true, | 45 requireInteraction: true, |
45 data: [ | 46 data: [ |
46 { property: 'foobar', | 47 { property: 'foobar', |
47 string: '\uDFFF\u0000\uDBFF', | 48 string: '\uDFFF\u0000\uDBFF', |
48 scalar: true }, | 49 scalar: true }, |
49 12.15 | 50 12.15 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 116 |
116 test.done(); | 117 test.done(); |
117 }); | 118 }); |
118 }); | 119 }); |
119 }).catch(unreached_rejection(test)); | 120 }).catch(unreached_rejection(test)); |
120 | 121 |
121 }, 'Clicking on a notification displayed by a Service Worker the notificat
ionclick event.'); | 122 }, 'Clicking on a notification displayed by a Service Worker the notificat
ionclick event.'); |
122 </script> | 123 </script> |
123 </body> | 124 </body> |
124 </html> | 125 </html> |
OLD | NEW |