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

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

Issue 958993002: Verify replacement and activation behavior for notifications on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-instrumentation-tests
Patch Set: rebase Created 5 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
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/notifications/android_test_worker.js
diff --git a/chrome/test/data/notifications/android_test_worker.js b/chrome/test/data/notifications/android_test_worker.js
index 421494a6e3dfb14beca28c2ecfc25fba715930b8..f2a2de5e2f377dd465497b63aeca02993f073a24 100644
--- a/chrome/test/data/notifications/android_test_worker.js
+++ b/chrome/test/data/notifications/android_test_worker.js
@@ -8,3 +8,7 @@ addEventListener('message', function(event) {
messagePort = event.data;
messagePort.postMessage('ready');
});
+
+addEventListener('notificationclick', function(event) {
+ event.notification.close();
+});
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698