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

Unified Diff: chrome/test/data/extensions/platform_apps/launch_reply/test.js

Issue 10828172: Allow platform apps to respond to Web Intents (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: about to submit Created 8 years, 3 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/test/data/extensions/platform_apps/launch_reply/manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/platform_apps/launch_reply/test.js
diff --git a/chrome/test/data/extensions/platform_apps/launch_reply/test.js b/chrome/test/data/extensions/platform_apps/launch_reply/test.js
new file mode 100644
index 0000000000000000000000000000000000000000..7e547b9a124e787d71c28e26171d676aa73ffd2e
--- /dev/null
+++ b/chrome/test/data/extensions/platform_apps/launch_reply/test.js
@@ -0,0 +1,15 @@
+// Copyright (c) 2012 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.
+
+chrome.app.runtime.onLaunched.addListener(function(launchData) {
+ // Test that there is a launchData.intent, and it is set up properly. Then
+ // immediately reply to the intent with a success message.
+ chrome.test.runTests([
+ function testIntent() {
+ chrome.test.assertFalse(!launchData, "No launchData");
+ chrome.test.assertFalse(!launchData.intent, "No launchData.intent");
+ launchData.intent.postResult(true);
+ }
+ ]);
+});
« no previous file with comments | « chrome/test/data/extensions/platform_apps/launch_reply/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698