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

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

Issue 1619703002: Implement notificationclose event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test expectations and compile error Created 4 years, 11 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 77816dd5a43dcaab5f50a003ecc0cd350baee6a6..601dc2941df30ded5d1b0aa4a382b072dcf44a24 100644
--- a/chrome/test/data/notifications/platform_notification_service.js
+++ b/chrome/test/data/notifications/platform_notification_service.js
@@ -19,3 +19,9 @@ addEventListener('notificationclick', function (event) {
messagePort.postMessage(event.notification.title);
});
+
+// The notificationclose event will be invoked when a persistent notification
+// has been closed by the user.
+addEventListener('notificationclose', function (event) {
+ messagePort.postMessage('closing notification: ' + event.notification.title);
+});

Powered by Google App Engine
This is Rietveld 408576698