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

Unified Diff: chrome/test/data/extensions/api_test/file_browser/handler_test_runner/test.js

Issue 13149003: drive: Use "/drive/root" namespace and fix Files app and tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed LocalFileSystemExtensionApiTest which I have broken in this CL actually. Created 7 years, 9 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_browser/handler_test_runner/test.js
diff --git a/chrome/test/data/extensions/api_test/file_browser/handler_test_runner/test.js b/chrome/test/data/extensions/api_test/file_browser/handler_test_runner/test.js
index 65843389a244d92fead1202d6120a6390db4a1b7..8a1f98aa04a666bcaa5f40af3312b9c10a614d01 100644
--- a/chrome/test/data/extensions/api_test/file_browser/handler_test_runner/test.js
+++ b/chrome/test/data/extensions/api_test/file_browser/handler_test_runner/test.js
@@ -8,8 +8,8 @@
* - Open external filesystem.
* - Get the test mount point root. The root is determined by probing exitents
* of root directories 'local' or 'drive'.
- * - Get files 'test_dir/test_file.xul' and 'test_dir/test_file.tiff' on the
- * test mount point.
+ * - Get files 'test_dir/test_file.xul' and 'test_dir/test_file.tiff'
+ * on the test mount point.
* Chrome part of the test should ensure that these actually exist.
* - For each of the files do following:
* - Get registered file tasks.
@@ -149,9 +149,10 @@ function run() {
* @param {DirectoryEntry} mountPointEntry The mount points root dir entry.
*/
function onFoundMountPoint(mountPointEntry) {
+ var isOnDrive = mountPointEntry.fullPath == '/drive';
kTestCases.forEach(function(testCase) {
mountPointEntry.getFile(
- testCase.path, {},
+ (isOnDrive ? 'root/' : '') + testCase.path, {},
onGotEntry.bind(null, testCase.mimeType),
onError.bind(null, 'Unable to get file: ' + testCase.path));
});

Powered by Google App Engine
This is Rietveld 408576698