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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // These have to be sync'd with file_browser_private_apitest.cc 5 // These have to be sync'd with file_browser_private_apitest.cc
6 var expectedVolume1 = { 6 var expectedVolume1 = {
7 devicePath: 'device_path1', 7 devicePath: 'device_path1',
8 mountPath: 'removable/mount_path1', 8 mountPath: 'removable/mount_path1',
9 systemPath: 'system_path1', 9 systemPath: 'system_path1',
10 filePath: 'file_path1', 10 filePath: 'file_path1',
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 function createFileUrl(fileName) { 122 function createFileUrl(fileName) {
123 var testExtensionId = "ddammdhioacbehjngdmkjcjbnfginlla"; 123 var testExtensionId = "ddammdhioacbehjngdmkjcjbnfginlla";
124 var fileUrl = "filesystem:chrome-extension://" + testExtensionId + 124 var fileUrl = "filesystem:chrome-extension://" + testExtensionId +
125 "/external/" + fileName; 125 "/external/" + fileName;
126 return fileUrl; 126 return fileUrl;
127 }; 127 };
128 128
129 chrome.test.runTests([ 129 chrome.test.runTests([
130 function removeMount() { 130 function removeMount() {
131 // The ID of this extension. 131 // The ID of this extension.
132 var fileUrl = createFileUrl("tmp/test_file.zip"); 132 var fileUrl = createFileUrl("archive/archive_mount_path");
133 133
134 chrome.fileBrowserPrivate.removeMount(fileUrl); 134 chrome.fileBrowserPrivate.removeMount(fileUrl);
135 135
136 // We actually check this one on C++ side. If MountLibrary.RemoveMount 136 // We actually check this one on C++ side. If MountLibrary.RemoveMount
137 // doesn't get called, test will fail. 137 // doesn't get called, test will fail.
138 chrome.test.succeed(); 138 chrome.test.succeed();
139 }, 139 },
140 140
141 function getVolumeMetadataValid1() { 141 function getVolumeMetadataValid1() {
142 chrome.fileBrowserPrivate.getVolumeMetadata( 142 chrome.fileBrowserPrivate.getVolumeMetadata(
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 'getMountPoints returned wrong number of mount points.'); 198 'getMountPoints returned wrong number of mount points.');
199 for (var i = 0; i < expectedMountPoints.length; i++) { 199 for (var i = 0; i < expectedMountPoints.length; i++) {
200 chrome.test.assertTrue( 200 chrome.test.assertTrue(
201 validateObject(result[i], expectedMountPoints[i], 'mountPoint', 201 validateObject(result[i], expectedMountPoints[i], 'mountPoint',
202 treatMountPointException), 202 treatMountPointException),
203 'getMountPoints result[' + i +'] not as expected'); 203 'getMountPoints result[' + i +'] not as expected');
204 } 204 }
205 })); 205 }));
206 } 206 }
207 ]); 207 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698