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

Unified Diff: chrome/test/data/extensions/api_test/file_system/open_multiple_with_suggested_name/test.js

Issue 18331017: Support choosing multiple files with fileSystem.chooseEntry. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 5 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/open_multiple_with_suggested_name/test.js
diff --git a/chrome/test/data/extensions/api_test/file_system/open_existing/test.js b/chrome/test/data/extensions/api_test/file_system/open_multiple_with_suggested_name/test.js
similarity index 53%
copy from chrome/test/data/extensions/api_test/file_system/open_existing/test.js
copy to chrome/test/data/extensions/api_test/file_system/open_multiple_with_suggested_name/test.js
index d2f22e237ae3f6874f83eb7cfb97718f7960b2e0..daf65f4605c04748cf17d2e7ef7f37d575083b65 100644
--- a/chrome/test/data/extensions/api_test/file_system/open_existing/test.js
+++ b/chrome/test/data/extensions/api_test/file_system/open_multiple_with_suggested_name/test.js
@@ -5,9 +5,10 @@
chrome.test.runTests([
function openFile() {
chrome.fileSystem.chooseEntry(
- {suggestedName: 'open_existing.txt'},
- chrome.test.callbackPass(function(entry) {
- checkEntry(entry, 'open_existing.txt', false, false);
+ {suggestedName: 'open_existing.txt', acceptsMultiple: true},
+ chrome.test.callbackPass(function(entries) {
+ chrome.test.assertEq(1, entries.length);
+ checkEntry(entries[0], 'open_existing.txt', false, false);
})
);
}

Powered by Google App Engine
This is Rietveld 408576698