summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorrginda@chromium.org <rginda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-12 19:57:56 +0000
committerrginda@chromium.org <rginda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-12 19:57:56 +0000
commit2bc27608c7957eb03a98cd3b6929d6e6c068b478 (patch)
tree57aa809a4b1b699a9a3508d5b3c2668bf0a31763 /chrome
parent63ec9fbc1e0b0b875444e1f70a6383a62194c5e9 (diff)
downloadchromium_src-2bc27608c7957eb03a98cd3b6929d6e6c068b478.zip
chromium_src-2bc27608c7957eb03a98cd3b6929d6e6c068b478.tar.gz
chromium_src-2bc27608c7957eb03a98cd3b6929d6e6c068b478.tar.bz2
README.harness: initial add
Add a little documentation on how to use the dev harness. BUG=none TEST=none Review URL: http://codereview.chromium.org/6822062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81293 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/resources/file_manager/README.harness37
1 files changed, 37 insertions, 0 deletions
diff --git a/chrome/browser/resources/file_manager/README.harness b/chrome/browser/resources/file_manager/README.harness
new file mode 100644
index 0000000..0e80f79
--- /dev/null
+++ b/chrome/browser/resources/file_manager/README.harness
@@ -0,0 +1,37 @@
+File Manager Development Harness
+================================
+
+The File Manager harness hosts file manager dialogs as a regular web page. It's
+useful for development and manual unit testing.
+
+In order to use the harness, you must start chrome with the following
+arguments:
+ chrome --allow-file-access-from-files --unlimited-quota-for-files
+
+To view the harness, visit:
+ file://PATH/TO/src/chrome/browser/resources/file_manager/harness.html
+
+This will display a "Open File" dialog by default. You can switch to another
+kind of dialog using the links at the top of the page.
+
+Populating the development filesystem
+=====================================
+
+The "Save File" dialog type includes "New Folder" button. This can be used to
+populate a few subdirectories for basic testing.
+
+The buttons at the bottom of the page allow you to add files to, or clear out
+the mock filesystem. (This is the filesystem associated with all file: urls.)
+
+The Choose File button (from the bottom of the page) does not support importing
+a hierarchy of directories. If you would like to bulk import a hierarchy, use
+the squashdir.py script located in file_manager/bin/squashdir.py. This will
+copy a tree of files into a single directory, renaming them all to include
+their original path. The Choose File button will reconstitute these munged
+filenames back into their original structure.
+
+Poking at the File Manager
+==========================
+
+From the JS Console, you can refer to the fileManager object as
+`harness.fileManager`.