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

Unified Diff: chrome/test/data/notifications/platform_notification_service.js

Issue 1693583002: Add browser test for notification action icons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ActionIconToJava
Patch Set: Rebase. Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/notifications/platform_notification_service.js
diff --git a/chrome/test/data/notifications/platform_notification_service.js b/chrome/test/data/notifications/platform_notification_service.js
index 601dc2941df30ded5d1b0aa4a382b072dcf44a24..e7a3bf20eb628743b084eac3952f8e27990361d6 100644
--- a/chrome/test/data/notifications/platform_notification_service.js
+++ b/chrome/test/data/notifications/platform_notification_service.js
@@ -17,7 +17,12 @@ addEventListener('notificationclick', function (event) {
if (event.notification.title == 'action_close')
event.notification.close();
- messagePort.postMessage(event.notification.title);
+ var message = event.notification.title;
+
+ if (message == 'action_button_click')
+ message += ' ' + event.action;
+
+ messagePort.postMessage(message);
});
// The notificationclose event will be invoked when a persistent notification

Powered by Google App Engine
This is Rietveld 408576698