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

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: Simplified. 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..0a501a6f0f58e23c663bb80df3a69732477c6429 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,6 +28,8 @@ var expectedVolume2 = {
isParentDevice: true,
isReadOnly: true,
hasMedia: true,
+ configurable: false,
+ source: 'device',
profile: {profileId: "", displayName: "", isCurrentProfile: true}
};
@@ -39,6 +43,8 @@ var expectedVolume3 = {
isParentDevice: true,
isReadOnly: false,
hasMedia: false,
+ configurable: false,
+ source: 'device',
profile: {profileId: "", displayName: "", isCurrentProfile: true}
};
@@ -48,6 +54,8 @@ var expectedDownloadsVolume = {
volumeType: 'downloads',
isReadOnly: false,
hasMedia: false,
+ configurable: false,
+ source: 'system',
profile: {profileId: "", displayName: "", isCurrentProfile: true}
};
@@ -58,6 +66,8 @@ var expectedDriveVolume = {
volumeType: 'drive',
isReadOnly: false,
hasMedia: false,
+ configurable: false,
+ source: 'network',
profile: {profileId: "", displayName: "", isCurrentProfile: true}
};
@@ -68,6 +78,22 @@ var expectedArchiveVolume = {
volumeType: 'archive',
isReadOnly: true,
hasMedia: false,
+ 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}
hirono 2015/05/14 10:43:09 "" -> ''?
mtomasz 2015/05/15 02:03:38 Done.
};
@@ -78,9 +104,10 @@ var expectedVolumeList = [
expectedArchiveVolume,
expectedDownloadsVolume,
expectedDriveVolume,
+ expectedProvidedVolume,
expectedVolume1,
expectedVolume2,
- expectedVolume3,
+ expectedVolume3
];
function validateObject(received, expected, name) {

Powered by Google App Engine
This is Rietveld 408576698