Index: tools/cc-frame-viewer/third_party/py-chrome-app/unittest_data/simple-working-app/index.js |
diff --git a/tools/cc-frame-viewer/third_party/py-chrome-app/unittest_data/simple-working-app/index.js b/tools/cc-frame-viewer/third_party/py-chrome-app/unittest_data/simple-working-app/index.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..61013269bcf1e96754d169ec0d6bd0862e40f081 |
--- /dev/null |
+++ b/tools/cc-frame-viewer/third_party/py-chrome-app/unittest_data/simple-working-app/index.js |
@@ -0,0 +1,11 @@ |
+/* 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. |
+ */ |
+chromeapp.addEventListener('launch', function(event) { |
+ if (event.args.length != 1 || event.args[0] != 'hello') { |
+ chromeapp.exit(0); |
+ return; |
+ } |
+ chromeapp.exit(42); |
+}); |