Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1005)

Side by Side Diff: chrome/test/data/notifications/platform_notification_service.html

Issue 1083683003: Speculative revert by sheriff (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed an unrelated commit that had accidentally slipped in. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/interactive_ui_tests.isolate ('k') | chromecast/media/base/switching_media_renderer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 icon: 'icon.png', 56 icon: 'icon.png',
57 silent: true, 57 silent: true
58 data: [
59 { property: 'value' }
60 ]
61 }); 58 });
62 } 59 }
63 60
64 // Displays a persistent notification with a data: URL as its image. 61 // Displays a persistent notification with a data: URL as its image.
65 function DisplayPersistentNotificationDataUrlImage() { 62 function DisplayPersistentNotificationDataUrlImage() {
66 fetch('icon.png').then(function(response) { 63 fetch('icon.png').then(function(response) {
67 return response.blob(); 64 return response.blob();
68 }).then(function(blob) { 65 }).then(function(blob) {
69 var reader = new FileReader(); 66 var reader = new FileReader();
70 reader.readAsDataURL(blob); 67 reader.readAsDataURL(blob);
(...skipping 27 matching lines...) Expand all
98 if (!messageStack.length) { 95 if (!messageStack.length) {
99 expectingMessage = true; 96 expectingMessage = true;
100 return; 97 return;
101 } 98 }
102 99
103 domAutomationController.send('' + messageStack.pop()); 100 domAutomationController.send('' + messageStack.pop());
104 } 101 }
105 </script> 102 </script>
106 </body> 103 </body>
107 </html> 104 </html>
OLDNEW
« no previous file with comments | « chrome/interactive_ui_tests.isolate ('k') | chromecast/media/base/switching_media_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698