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

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/extensions/platform_apps/extension_view/test.js b/chrome/test/data/notifications/android_test_worker.js
similarity index 55%
copy from chrome/test/data/extensions/platform_apps/extension_view/test.js
copy to chrome/test/data/notifications/android_test_worker.js
index d01f8765f7e8d69587d37944c57e58a77905a64f..421494a6e3dfb14beca28c2ecfc25fba715930b8 100644
--- a/chrome/test/data/extensions/platform_apps/extension_view/test.js
+++ b/chrome/test/data/notifications/android_test_worker.js
@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-chrome.app.runtime.onLaunched.addListener(function() {
- chrome.app.window.create('main.html', {}, function () {});
+var messagePort = null;
+
+addEventListener('message', function(event) {
+ messagePort = event.data;
+ messagePort.postMessage('ready');
});
« no previous file with comments | « chrome/test/data/notifications/android_test.html ('k') | chrome/test/data/notifications/notification_test_utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698