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