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

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

Issue 23146016: Add support for directory access to the file system API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@simpler-write-permissions
Patch Set: Created 7 years, 4 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_directory_with_only_write/test.js
diff --git a/chrome/test/data/extensions/api_test/file_system/open_writable_existing/test.js b/chrome/test/data/extensions/api_test/file_system/open_directory_with_only_write/test.js
similarity index 70%
copy from chrome/test/data/extensions/api_test/file_system/open_writable_existing/test.js
copy to chrome/test/data/extensions/api_test/file_system/open_directory_with_only_write/test.js
index d0a8cd9c4433b1e4d223e9867cdc23f546d99be3..d344af3728a47e26912dba43c26bc3aba9aa2c16 100644
--- a/chrome/test/data/extensions/api_test/file_system/open_writable_existing/test.js
+++ b/chrome/test/data/extensions/api_test/file_system/open_directory_with_only_write/test.js
@@ -4,9 +4,9 @@
chrome.test.runTests([
function openFile() {
- chrome.fileSystem.chooseEntry({type: 'openWritableFile'},
+ chrome.fileSystem.chooseEntry({type: 'openDirectory'},
chrome.test.callbackFail(
- 'Operation requires fileSystem.write permission',
+ 'Operation requires fileSystem.directory permission',
function(entry) {}));
}
]);

Powered by Google App Engine
This is Rietveld 408576698