| 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);
|
| + }
|
| + ]);
|
| +});
|
|
|