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

Unified Diff: chrome/test/data/extensions/api_test/file_browser/mount_test/test.js

Issue 1137383002: Show the eject button only for removabled and file handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests. Created 5 years, 7 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
Index: chrome/test/data/extensions/api_test/file_browser/mount_test/test.js
diff --git a/chrome/test/data/extensions/api_test/file_browser/mount_test/test.js b/chrome/test/data/extensions/api_test/file_browser/mount_test/test.js
index ff093636d55b3c93d5dd8916bff6fbb59a362093..e288fd53e117d7b32b863325d99ca9641b24b6dd 100644
--- a/chrome/test/data/extensions/api_test/file_browser/mount_test/test.js
+++ b/chrome/test/data/extensions/api_test/file_browser/mount_test/test.js
@@ -13,7 +13,9 @@ var expectedVolume1 = {
isParentDevice: false,
isReadOnly: false,
hasMedia: false,
- profile: {profileId: "", displayName: "", isCurrentProfile: true}
+ configurable: false,
+ source: 'device',
+ profile: {profileId: '', displayName: '', isCurrentProfile: true},
};
var expectedVolume2 = {
@@ -26,7 +28,9 @@ var expectedVolume2 = {
isParentDevice: true,
isReadOnly: true,
hasMedia: true,
- profile: {profileId: "", displayName: "", isCurrentProfile: true}
+ configurable: false,
+ source: 'device',
+ profile: {profileId: '', displayName: '', isCurrentProfile: true}
};
var expectedVolume3 = {
@@ -39,7 +43,9 @@ var expectedVolume3 = {
isParentDevice: true,
isReadOnly: false,
hasMedia: false,
- profile: {profileId: "", displayName: "", isCurrentProfile: true}
+ configurable: false,
+ source: 'device',
+ profile: {profileId: '', displayName: '', isCurrentProfile: true}
};
var expectedDownloadsVolume = {
@@ -48,7 +54,9 @@ var expectedDownloadsVolume = {
volumeType: 'downloads',
isReadOnly: false,
hasMedia: false,
- profile: {profileId: "", displayName: "", isCurrentProfile: true}
+ configurable: false,
+ source: 'system',
+ profile: {profileId: '', displayName: '', isCurrentProfile: true}
};
var expectedDriveVolume = {
@@ -58,7 +66,9 @@ var expectedDriveVolume = {
volumeType: 'drive',
isReadOnly: false,
hasMedia: false,
- profile: {profileId: "", displayName: "", isCurrentProfile: true}
+ configurable: false,
+ source: 'network',
+ profile: {profileId: '', displayName: '', isCurrentProfile: true}
};
var expectedArchiveVolume = {
@@ -68,7 +78,23 @@ var expectedArchiveVolume = {
volumeType: 'archive',
isReadOnly: true,
hasMedia: false,
- profile: {profileId: "", displayName: "", isCurrentProfile: true}
+ configurable: false,
+ source: 'file',
+ profile: {profileId: '', displayName: '', isCurrentProfile: true}
+};
+
+var expectedProvidedVolume = {
+ volumeId: 'provided:',
+ volumeLabel: '',
+ volumeType: 'provided',
+ isReadOnly: true,
+ hasMedia: false,
+ configurable: true,
+ extensionId: 'testing-extension-id',
+ source: 'network',
+ mountContext: 'auto',
+ fileSystemId: '',
+ profile: {profileId: '', displayName: '', isCurrentProfile: true}
};
// List of expected mount points.
@@ -78,9 +104,10 @@ var expectedVolumeList = [
expectedArchiveVolume,
expectedDownloadsVolume,
expectedDriveVolume,
+ expectedProvidedVolume,
expectedVolume1,
expectedVolume2,
- expectedVolume3,
+ expectedVolume3
];
function validateObject(received, expected, name) {
« no previous file with comments | « chrome/common/extensions/api/file_manager_private.idl ('k') | third_party/closure_compiler/externs/file_manager_private.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698