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

Unified Diff: LayoutTests/http/tests/notifications/resources/click-close-service-worker.js

Issue 868053003: Expose ServiceWorkerRegistration.showNotification() in Service Workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/notifications/resources/click-forward-service-worker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/notifications/resources/click-close-service-worker.js
diff --git a/LayoutTests/http/tests/notifications/resources/click-close-service-worker.js b/LayoutTests/http/tests/notifications/resources/click-close-service-worker.js
deleted file mode 100644
index d71f84ea01507e048340bac3c5356c9836e43280..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/notifications/resources/click-close-service-worker.js
+++ /dev/null
@@ -1,13 +0,0 @@
-// Sends a message when the notificationclick event gets received, and closes the
-// notification which was shown from that event.
-var messagePort = null;
-
-addEventListener('message', function(event) {
- messagePort = event.data;
- messagePort.postMessage('ready');
-});
-
-addEventListener('notificationclick', function(event) {
- event.notification.close();
- messagePort.postMessage('Clicked on Notification: ' + event.notification.title);
-});
« no previous file with comments | « no previous file | LayoutTests/http/tests/notifications/resources/click-forward-service-worker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698