Index: chrome/test/data/extensions/platform_apps/launch_file/test.js |
diff --git a/chrome/test/data/extensions/platform_apps/launch_file/test.js b/chrome/test/data/extensions/platform_apps/launch_file/test.js |
index 210234e662bd729038c36df7693123a15a38a735..053833716b4ace9bddaf2fde7488038601e5cda8 100644 |
--- a/chrome/test/data/extensions/platform_apps/launch_file/test.js |
+++ b/chrome/test/data/extensions/platform_apps/launch_file/test.js |
@@ -2,9 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Test that there is a launchData.intent, it is set up proerly, and that the |
-// FileEntry in launchData.intent.data can be read. |
-function onLaunched(launchData) { |
+chrome.app.runtime.onLaunched.addListener(function (launchData) { |
+ // Test that there is a launchData.intent, it is set up proerly, and that the |
+ // FileEntry in launchData.intent.data can be read. |
chrome.test.runTests([ |
function testIntent() { |
chrome.test.assertFalse(!launchData, "No launchData"); |
@@ -30,6 +30,4 @@ function onLaunched(launchData) { |
}); |
} |
]); |
-} |
- |
-chrome.experimental.app.onLaunched.addListener(onLaunched); |
+}); |