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