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 21 matching lines...) Expand all Loading... |
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 vibrate: [100, 200, 300], | 40 vibrate: [100, 200, 300], |
41 timestamp: 621046800000, | 41 timestamp: 621046800000, |
| 42 renotify: true, |
42 silent: false, | 43 silent: false, |
43 requireInteraction: true, | 44 requireInteraction: true, |
44 data: [ | 45 data: [ |
45 { property: 'foobar', | 46 { property: 'foobar', |
46 string: '\uDFFF\u0000\uDBFF', | 47 string: '\uDFFF\u0000\uDBFF', |
47 scalar: true }, | 48 scalar: true }, |
48 12.15 | 49 12.15 |
49 ], | 50 ], |
50 actions: [] | 51 actions: [] |
51 }; | 52 }; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 115 |
115 test.done(); | 116 test.done(); |
116 }); | 117 }); |
117 }); | 118 }); |
118 }).catch(unreached_rejection(test)); | 119 }).catch(unreached_rejection(test)); |
119 | 120 |
120 }, 'Clicking on a notification displayed by a Service Worker the notificat
ionclick event.'); | 121 }, 'Clicking on a notification displayed by a Service Worker the notificat
ionclick event.'); |
121 </script> | 122 </script> |
122 </body> | 123 </body> |
123 </html> | 124 </html> |
OLD | NEW |