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

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

Issue 12223086: Update app runtime custom bindings to handle no WebIntents launch data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More stuff removed Created 7 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/extensions/platform_apps/get_display_path/test.js
diff --git a/chrome/test/data/extensions/platform_apps/get_display_path/test.js b/chrome/test/data/extensions/platform_apps/get_display_path/test.js
index 33d566b573f29d5715497dd122a33f70c5f9a001..5047c3fcf88560270db0793a70b2fbdb8a5d54f4 100644
--- a/chrome/test/data/extensions/platform_apps/get_display_path/test.js
+++ b/chrome/test/data/extensions/platform_apps/get_display_path/test.js
@@ -3,19 +3,15 @@
// found in the LICENSE file.
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.
+ // Test that there is launchData, it is set up properly, and that the
+ // FileEntry in launchData.items[0].entry can have its display path gotten.
chrome.test.runTests([
function testGetDisplayPath() {
chrome.test.assertFalse(!launchData, "No launchData");
- chrome.test.assertFalse(!launchData.intent, "No launchData.intent");
- chrome.test.assertEq(launchData.intent.action,
- "http://webintents.org/view");
- chrome.test.assertEq(launchData.intent.type,
- "chrome-extension://fileentry");
- chrome.test.assertFalse(!launchData.intent.data,
- "No launchData.intent.data");
- var entry = launchData.intent.data;
+ chrome.test.assertFalse(!launchData.items[0], "No launchData.items[0]");
+ chrome.test.assertFalse(!launchData.items[0].entry,
+ "No launchData.items[0].entry");
+ var entry = launchData.items[0].entry;
chrome.fileSystem.getDisplayPath(entry,
chrome.test.callbackPass(function(path) {
chrome.test.assertFalse(path.indexOf('test.txt') == -1);

Powered by Google App Engine
This is Rietveld 408576698