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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 icon: 'icon.png', | 56 icon: 'icon.png', |
57 timestamp: 621046800000, | 57 timestamp: 621046800000, |
| 58 renotify: true, |
58 silent: true, | 59 silent: true, |
59 requireInteraction: true, | 60 requireInteraction: true, |
60 data: [ | 61 data: [ |
61 { property: 'value' } | 62 { property: 'value' } |
62 ] | 63 ] |
63 }); | 64 }); |
64 } | 65 } |
65 | 66 |
66 // Displays a persistent notification with vibrate field. | 67 // Displays a persistent notification with vibrate field. |
67 function DisplayPersistentNotificationVibrate() { | 68 function DisplayPersistentNotificationVibrate() { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 function GetMessageFromWorker() { | 108 function GetMessageFromWorker() { |
108 if (!messageStack.length) { | 109 if (!messageStack.length) { |
109 expectingMessage = true; | 110 expectingMessage = true; |
110 return; | 111 return; |
111 } | 112 } |
112 | 113 |
113 domAutomationController.send('' + messageStack.pop()); | 114 domAutomationController.send('' + messageStack.pop()); |
114 } | 115 } |
115 </script> | 116 </script> |
116 </body> | 117 </body> |
117 </html> | 118 </html> |
OLD | NEW |