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

Unified Diff: chrome/test/data/extensions/api_test/filebrowser_mount/test.js

Issue 10083067: gdata: Support opening zip file on Google Docs. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: gdata: Support opening zip file on Google Docs. Created 8 years, 8 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
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | chromeos/dbus/cros_disks_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/filebrowser_mount/test.js
diff --git a/chrome/test/data/extensions/api_test/filebrowser_mount/test.js b/chrome/test/data/extensions/api_test/filebrowser_mount/test.js
index a2dfb66aaa4f24e30b869591012a8ca86d6f0337..8b6e3b4fb812b647a7f8591b5aa831e1d2ede305 100644
--- a/chrome/test/data/extensions/api_test/filebrowser_mount/test.js
+++ b/chrome/test/data/extensions/api_test/filebrowser_mount/test.js
@@ -129,7 +129,7 @@ function createFileUrl(fileName) {
chrome.test.runTests([
function removeMount() {
// The ID of this extension.
- var fileUrl = createFileUrl("tmp/test_file.zip");
+ var fileUrl = createFileUrl("archive/archive_mount_path");
chrome.fileBrowserPrivate.removeMount(fileUrl);
@@ -138,6 +138,20 @@ chrome.test.runTests([
chrome.test.succeed();
},
+ function removeMountNonExisting() {
tonibarzic 2012/04/25 18:39:09 This will probably fail now :)
hshi 2012/04/25 18:48:08 Yes I agree that this test no longer makes sense a
+ // The ID of this extension.
+ var fileUrl = createFileUrl("archive/archive_mount_path_non_existing");
+
+ chrome.fileBrowserPrivate.removeMount(fileUrl);
+
+ // We actually check this one on C++ side. The Url is a non-existing mount
+ // path, so we expect that MountLibrary.RemoveMount should not get called.
+ // If MountLibrary.RemoveMount does get called, test will fail because
+ // it expects MountLibrary.RemoveMount to be called only once in the
+ // preceeding test "removeMount".
+ chrome.test.succeed();
+ },
+
function getVolumeMetadataValid1() {
chrome.fileBrowserPrivate.getVolumeMetadata(
createFileUrl(expectedVolume1.mountPath),
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | chromeos/dbus/cros_disks_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698