| Index: chrome/test/data/notifications/platform_notification_service.html
|
| diff --git a/chrome/test/data/notifications/platform_notification_service.html b/chrome/test/data/notifications/platform_notification_service.html
|
| index 3c6ea37e2ad2376eaa6bcf2984f773bde2b6147d..7c4eb868001c1989361f636c144294610290a3ca 100644
|
| --- a/chrome/test/data/notifications/platform_notification_service.html
|
| +++ b/chrome/test/data/notifications/platform_notification_service.html
|
| @@ -58,6 +58,34 @@
|
| });
|
| }
|
|
|
| + // Displays a persistent notification with a data: URL as its image.
|
| + function DisplayPersistentNotificationDataUrlImage() {
|
| + fetch('icon.png').then(function(response) {
|
| + return response.blob();
|
| + }).then(function(blob) {
|
| + var reader = new FileReader();
|
| + reader.readAsDataURL(blob);
|
| + reader.onloadend = function() {
|
| + DisplayPersistentNotification('Data URL Title', {
|
| + body: 'Contents',
|
| + icon: reader.result
|
| + });
|
| + };
|
| + });
|
| + }
|
| +
|
| + // Displays a persistent notification with a blob URL as its image.
|
| + function DisplayPersistentNotificationBlobImage() {
|
| + fetch('icon.png').then(function(response) {
|
| + return response.blob();
|
| + }).then(function(blob) {
|
| + DisplayPersistentNotification('Blob Title', {
|
| + body: 'Contents',
|
| + icon: URL.createObjectURL(blob)
|
| + });
|
| + });
|
| + }
|
| +
|
| // Returns the latest received message from the worker. If no message has
|
| // been received, nothing will be done. For successfully registered
|
| // Service Workers this is OK, however, since the "message" event handler
|
|
|