OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html lang="en"> | 2 <html lang="en"> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <title>Platform Notification Service BrowserTest service page</title> | 5 <title>Platform Notification Service BrowserTest service page</title> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <!-- This page is intended to be used by the cross-platform | 8 <!-- This page is intended to be used by the cross-platform |
9 PlatformNotificationServiceBrowserTest. --> | 9 PlatformNotificationServiceBrowserTest. --> |
10 <script src="notification_test_utils.js"></script> | 10 <script src="notification_test_utils.js"></script> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 } | 46 } |
47 | 47 |
48 // Displays a persistent notification having every field in its options | 48 // Displays a persistent notification having every field in its options |
49 // bag filled out with non-default values. | 49 // bag filled out with non-default values. |
50 function DisplayPersistentAllOptionsNotification() { | 50 function DisplayPersistentAllOptionsNotification() { |
51 DisplayPersistentNotification('Title', { | 51 DisplayPersistentNotification('Title', { |
52 dir: 'rtl', | 52 dir: 'rtl', |
53 lang: 'nl-NL', | 53 lang: 'nl-NL', |
54 body: 'Contents', | 54 body: 'Contents', |
55 tag: 'replace-id', | 55 tag: 'replace-id', |
| 56 image: 'icon.png', |
56 icon: 'icon.png', | 57 icon: 'icon.png', |
57 badge: 'icon.png', | 58 badge: 'icon.png', |
58 timestamp: 621046800000, | 59 timestamp: 621046800000, |
59 renotify: true, | 60 renotify: true, |
60 silent: true, | 61 silent: true, |
61 requireInteraction: true, | 62 requireInteraction: true, |
62 data: [ | 63 data: [ |
63 { property: 'value' } | 64 { property: 'value' } |
64 ], | 65 ], |
65 actions: [ | 66 actions: [ |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 if (!messageStack.length) { | 125 if (!messageStack.length) { |
125 expectingMessage = true; | 126 expectingMessage = true; |
126 return; | 127 return; |
127 } | 128 } |
128 | 129 |
129 domAutomationController.send('' + messageStack.pop()); | 130 domAutomationController.send('' + messageStack.pop()); |
130 } | 131 } |
131 </script> | 132 </script> |
132 </body> | 133 </body> |
133 </html> | 134 </html> |
OLD | NEW |