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

Unified Diff: ui/file_manager/file_manager/background/js/volume_manager_unittest.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: ui/file_manager/file_manager/background/js/volume_manager_unittest.js
diff --git a/ui/file_manager/file_manager/background/js/volume_manager_unittest.js b/ui/file_manager/file_manager/background/js/volume_manager_unittest.js
index d2d4c4f9bafa40f065c599a2780f06534d0f5331..30cb335aa626e954cd4dfe27ff3d6698b9404a70 100644
--- a/ui/file_manager/file_manager/background/js/volume_manager_unittest.js
+++ b/ui/file_manager/file_manager/background/js/volume_manager_unittest.js
@@ -91,14 +91,18 @@ function setUp() {
volumeLabel: '',
volumeType: VolumeManagerCommon.VolumeType.DOWNLOADS,
isReadOnly: false,
- profile: getMockProfile()
+ profile: getMockProfile(),
+ configurable: false,
+ source: VolumeManagerCommon.Source.SYSTEM
},
{
volumeId: 'drive:drive-foobar%40chromium.org-hash',
volumeLabel: '',
volumeType: VolumeManagerCommon.VolumeType.DRIVE,
isReadOnly: false,
- profile: getMockProfile()
+ profile: getMockProfile(),
+ configurable: false,
+ source: VolumeManagerCommon.Source.NETWORK
}
];
chrome.fileManagerPrivate.fileSystemMap_ = {
@@ -185,7 +189,9 @@ function testMountArchiveAndUnmount(callback) {
volumeType: VolumeManagerCommon.VolumeType.ARCHIVE,
isReadOnly: true,
sourcePath: mountSourcePath,
- profile: getMockProfile()
+ profile: getMockProfile(),
+ configurable: false,
+ source: VolumeManagerCommon.Source.FILE
}
});
}).then(function(result) {
@@ -255,7 +261,8 @@ function testVolumeInfoListWhenReady(callback) {
/* label */ null,
/* extensionid */ null,
/* hasMedia */ false,
- /* configurable */ false);
+ /* configurable */ false,
+ /* source */ VolumeManagerCommon.Source.FILE);
list.add(volumeInfo);
var promiseAfterAdd = list.whenVolumeInfoReady('volumeId');
reportPromise(Promise.all([promiseBeforeAdd, promiseAfterAdd]).then(

Powered by Google App Engine
This is Rietveld 408576698