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

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

Issue 960923004: Add two instrumentation tests for Web Notifications on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..84de7b5268e039b028842b934e53b255cc721248
--- /dev/null
+++ b/chrome/test/data/notifications/android_test_worker.js
@@ -0,0 +1,14 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+var messagePort = null;
+
+addEventListener('message', function(event) {
+ messagePort = event.data;
+ messagePort.postMessage('ready');
+});
+
+addEventListener('notificationclick', function(event) {
Michael van Ouwerkerk 2015/02/26 17:24:23 This doesn't do anything. Why is it included?
Peter Beverloo 2015/02/26 18:22:38 Took it out. Future tests will need it.
+
+});

Powered by Google App Engine
This is Rietveld 408576698