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

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

Issue 10544069: Change platform app api getDisplayPath to take FileEntry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 6 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/renderer/resources/extensions/file_system_custom_bindings.js ('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/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 2ab01eabc2b1639c2285edd72255de8a3bc1703b..e43fe9b01413805cc54b5553bda6c3456d897dbb 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
@@ -6,7 +6,7 @@
// FileEntry in launchData.intent.data can be read.
function onLaunched(launchData) {
chrome.test.runTests([
- function testIntent() {
+ function testGetDisplayPath() {
chrome.test.assertFalse(!launchData, "No launchData");
chrome.test.assertFalse(!launchData.intent, "No launchData.intent");
chrome.test.assertEq(launchData.intent.action,
@@ -16,8 +16,8 @@ function onLaunched(launchData) {
chrome.test.assertFalse(!launchData.intent.data,
"No launchData.intent.data");
var entry = launchData.intent.data;
- chrome.fileSystem.getDisplayPath(entry.filesystem.name,
- entry.fullPath.slice(1), chrome.test.callbackPass(function(path) {
+ chrome.fileSystem.getDisplayPath(entry,
+ chrome.test.callbackPass(function(path) {
chrome.test.assertFalse(path.indexOf('test.txt') == -1);
}));
}
« no previous file with comments | « chrome/renderer/resources/extensions/file_system_custom_bindings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698