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

Unified Diff: chrome/test/data/extensions/api_test/file_system_provider/execute_action/test.js

Issue 1239043002: Add support for actions for multiple file selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed externs. Created 5 years, 3 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/api_test/file_system_provider/execute_action/test.js
diff --git a/chrome/test/data/extensions/api_test/file_system_provider/execute_action/test.js b/chrome/test/data/extensions/api_test/file_system_provider/execute_action/test.js
index c23cfb8b2b1e7552927470cf69fe386375b2011f..d80c74188dfbf7c109a4948f0938cbfccc0dabbd 100644
--- a/chrome/test/data/extensions/api_test/file_system_provider/execute_action/test.js
+++ b/chrome/test/data/extensions/api_test/file_system_provider/execute_action/test.js
@@ -54,8 +54,9 @@ function runTests() {
function(options, onSuccess, onError) {
chrome.test.assertEq(test_util.FILE_SYSTEM_ID,
options.fileSystemId);
+ chrome.test.assertEq(1, options.entryPaths.length);
chrome.test.assertEq('/' + TESTING_ACTIONS_DIR.name,
- options.entryPath);
+ options.entryPaths[0]);
chrome.test.assertEq(TESTING_ACTION_ID, options.actionId);
chrome.fileSystemProvider.onExecuteActionRequested.removeListener(
onExecuteActionRequested);
@@ -67,8 +68,8 @@ function runTests() {
TESTING_ACTIONS_DIR.name,
{create: false},
chrome.test.callbackPass(function(dirEntry) {
- chrome.fileManagerPrivate.executeEntryAction(
- dirEntry,
+ chrome.fileManagerPrivate.executeCustomAction(
+ [dirEntry],
TESTING_ACTION_ID,
chrome.test.callbackPass(function() {}));
}),
@@ -83,8 +84,9 @@ function runTests() {
function(options, onSuccess, onError) {
chrome.test.assertEq(test_util.FILE_SYSTEM_ID,
options.fileSystemId);
+ chrome.test.assertEq(1, options.entryPaths.length);
chrome.test.assertEq('/' + TESTING_ACTIONS_DIR.name,
- options.entryPath);
+ options.entryPaths[0]);
chrome.test.assertEq(TESTING_UNKNOWN_ACTION_ID, options.actionId);
chrome.fileSystemProvider.onExecuteActionRequested.removeListener(
onExecuteActionRequested);
@@ -96,8 +98,8 @@ function runTests() {
TESTING_ACTIONS_DIR.name,
{create: false},
chrome.test.callbackPass(function(dirEntry) {
- chrome.fileManagerPrivate.executeEntryAction(
- dirEntry,
+ chrome.fileManagerPrivate.executeCustomAction(
+ [dirEntry],
TESTING_UNKNOWN_ACTION_ID,
chrome.test.callbackFail('Failed to execute the action.',
function() {}));

Powered by Google App Engine
This is Rietveld 408576698