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

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..a35a8124d0e1f638d8ce428d1b15f1d566b584ba 100644
--- a/chrome/test/data/extensions/api_test/filebrowser_mount/test.js
+++ b/chrome/test/data/extensions/api_test/filebrowser_mount/test.js
@@ -11,7 +11,7 @@ var expectedVolume1 = {
deviceLabel: 'device_label1',
driveLabel: 'drive_label1',
deviceType: 'usb',
- totalSize: 1073741824,
+ totalSize: 1073741824,
isParent: false,
isReadOnly: false,
hasMedia: false,
@@ -26,7 +26,7 @@ var expectedVolume2 = {
deviceLabel: 'device_label2',
driveLabel: 'drive_label2',
deviceType: 'mobile',
- totalSize: 47723,
+ totalSize: 47723,
isParent: true,
isReadOnly: true,
hasMedia: true,
@@ -41,7 +41,7 @@ var expectedVolume3 = {
deviceLabel: 'device_label3',
driveLabel: 'drive_label3',
deviceType: 'optical',
- totalSize: 0,
+ totalSize: 0,
isParent: true,
isReadOnly: false,
hasMedia: false,
@@ -92,7 +92,7 @@ function treatMountPointException(received, expected, key) {
expectedSourceUrl + "' but got '" + received['sourceUrl'] +
"' instead.");
return { wasValidated: true, success: success };
-};
+}
function validateObject(received, expected, name, treatException) {
for (var key in expected) {
@@ -113,23 +113,23 @@ function validateObject(received, expected, name, treatException) {
}
}
if (Object.keys(expected).length != Object.keys(received).length) {
- console.warn("Unexpected property found in returned volume");
+ console.warn('Unexpected property found in returned volume');
return false;
}
return true;
-};
+}
function createFileUrl(fileName) {
- var testExtensionId = "ddammdhioacbehjngdmkjcjbnfginlla";
- var fileUrl = "filesystem:chrome-extension://" + testExtensionId +
- "/external/" + fileName;
+ var testExtensionId = 'ddammdhioacbehjngdmkjcjbnfginlla';
+ var fileUrl = 'filesystem:chrome-extension://' + testExtensionId +
+ '/external/' + fileName;
return fileUrl;
-};
+}
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);
@@ -144,7 +144,7 @@ chrome.test.runTests([
chrome.test.callbackPass(function(result) {
chrome.test.assertTrue(
validateObject(result, expectedVolume1, 'volume'),
- "getVolumeMetadata result for first volume not as expected");
+ 'getVolumeMetadata result for first volume not as expected');
}));
},
@@ -154,7 +154,7 @@ chrome.test.runTests([
chrome.test.callbackPass(function(result) {
chrome.test.assertTrue(
validateObject(result, expectedVolume2, 'volume'),
- "getVolumeMetadata result for second volume not as expected");
+ 'getVolumeMetadata result for second volume not as expected');
}));
},
@@ -164,13 +164,13 @@ chrome.test.runTests([
chrome.test.callbackPass(function(result) {
chrome.test.assertTrue(
validateObject(result, expectedVolume3, 'volume'),
- "getVolumeMetadata result for third volume not as expected");
+ 'getVolumeMetadata result for third volume not as expected');
}));
},
function getVolumeMetadataNonExistentPath() {
chrome.fileBrowserPrivate.getVolumeMetadata(
- createFileUrl("removable/non_existent_device_path"),
+ createFileUrl('removable/non_existent_device_path'),
chrome.test.callbackPass(function(result) {
chrome.test.assertEq(undefined, result);
}));
@@ -179,7 +179,7 @@ chrome.test.runTests([
function getVolumeMetadataArchive() {
chrome.fileBrowserPrivate.getVolumeMetadata(
- createFileUrl("archive/archive_mount_path"),
+ createFileUrl('archive/archive_mount_path'),
chrome.test.callbackPass(function(result) {
chrome.test.assertEq(undefined, result);
}));
@@ -187,8 +187,8 @@ chrome.test.runTests([
function getVolumeMetadataInvalidPath() {
chrome.fileBrowserPrivate.getVolumeMetadata(
- "some path",
- chrome.test.callbackFail("Invalid mount path."));
+ 'some path',
+ chrome.test.callbackFail('Invalid mount path.'));
},
function getMountPointsTest() {
@@ -200,7 +200,7 @@ chrome.test.runTests([
chrome.test.assertTrue(
validateObject(result[i], expectedMountPoints[i], 'mountPoint',
treatMountPointException),
- 'getMountPoints result[' + i +'] not as expected');
+ 'getMountPoints result[' + i + '] not as expected');
}
}));
}
« 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