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

Unified Diff: chrome/test/data/extensions/api_test/file_system/retain_directory/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/retain_directory/test.js
diff --git a/chrome/test/data/extensions/api_test/file_system/retain_entry/test.js b/chrome/test/data/extensions/api_test/file_system/retain_directory/test.js
similarity index 68%
copy from chrome/test/data/extensions/api_test/file_system/retain_entry/test.js
copy to chrome/test/data/extensions/api_test/file_system/retain_directory/test.js
index 9555e8e52d33d28fb2a812c6d79c02c2fa24d139..03f03ac75eb79b9c4cc8528e7eeb710d37b0d43a 100644
--- a/chrome/test/data/extensions/api_test/file_system/retain_entry/test.js
+++ b/chrome/test/data/extensions/api_test/file_system/retain_directory/test.js
@@ -19,8 +19,16 @@ chrome.test.runTests([
chrome.test.assertEq(restoredEntry, entry);
chrome.test.assertEq(
chrome.fileSystem.retainEntry(restoredEntry), id);
- checkEntry(restoredEntry, 'writable.txt', false /* isNew */,
- false /*shouldBeWritable */);
+ var reader = entry.createReader();
+ reader.readEntries(chrome.test.callback(function(entries) {
+ chrome.test.assertEq(entries.length, 1);
+ checkEntry(entries[0], 'open_existing.txt', false, false);
+ }));
+ entry.getFile(
+ 'open_existing.txt', {},
+ chrome.test.callbackPass(function(entry) {
+ checkEntry(entry, 'open_existing.txt', false, false);
+ }));
}));
});
}));

Powered by Google App Engine
This is Rietveld 408576698