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), |