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

Unified Diff: chrome/browser/resources/file_manager/js/mock_chrome.js

Issue 10907060: Files app test harness improvements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/browser/resources/file_manager/js/mock_chrome.js
diff --git a/chrome/browser/resources/file_manager/js/mock_chrome.js b/chrome/browser/resources/file_manager/js/mock_chrome.js
index 38bb48b3e742e94300ffa062f2e9842bd6758b28..adfff1b6f799407120cef04a38cbd7605e0022b6 100644
--- a/chrome/browser/resources/file_manager/js/mock_chrome.js
+++ b/chrome/browser/resources/file_manager/js/mock_chrome.js
@@ -50,18 +50,21 @@ function cloneShallow(object) {
* Mock out the chrome.fileBrowserPrivate API for use in the harness.
*/
chrome.fileBrowserPrivate = {
+ /**
+ * Change to window.TEMPORARY if you do not insist on persistence.
+ */
+ FS_TYPE: window.PERSISTENT,
/**
* Return a normal HTML5 filesystem api, rather than the real local
* filesystem.
*
- * You must start chrome with --allow-file-access-from-files and
- * --unlimited-quota-for-files in order for this to work.
+ * If the test harness is on file: schema you must start chrome with
+ * --allow-file-access-from-files in order for this to work.
*/
requestLocalFileSystem: function(callback) {
- window.webkitRequestFileSystem(window.PERSISTENT, 16 * 1024 * 1024,
- callback,
- util.ferr('Error requesting filesystem'));
+ window.webkitRequestFileSystem(this.FS_TYPE,
+ 16 * 1024 * 1024, callback, util.ferr('Error requesting filesystem'));
},
/**

Powered by Google App Engine
This is Rietveld 408576698