| Index: ui/file_manager/file_manager/background/js/device_handler_unittest.js
|
| diff --git a/ui/file_manager/file_manager/background/js/device_handler_unittest.js b/ui/file_manager/file_manager/background/js/device_handler_unittest.js
|
| index a5266085023e7f7ac43ec24effb103a422bd9a1b..8c3510898682b03410999764fafe060773710876 100644
|
| --- a/ui/file_manager/file_manager/background/js/device_handler_unittest.js
|
| +++ b/ui/file_manager/file_manager/background/js/device_handler_unittest.js
|
| @@ -152,49 +152,6 @@ function testMtpMediaDeviceWithImportEnabled(callback) {
|
| reportPromise(resolver.promise, callback);
|
| }
|
|
|
| -function testMediaDeviceWithImportEnabledAndPhotosAppImportEnabled(callback) {
|
| - var storage = new MockChromeStorageAPI();
|
| - chrome.commandLinePrivate.cloudImportDisabled = false;
|
| -
|
| - setupFileSystem(
|
| - VolumeManagerCommon.VolumeType.REMOVABLE,
|
| - 'blabbity',
|
| - [
|
| - '/DCIM/',
|
| - '/DCIM/grandma.jpg'
|
| - ]);
|
| -
|
| - var promise = importer.handlePhotosAppMessage(true)
|
| - .then(
|
| - function() {
|
| - chrome.fileManagerPrivate.onMountCompleted.dispatch({
|
| - eventType: 'mount',
|
| - status: 'success',
|
| - volumeMetadata: {
|
| - volumeId: 'blabbity',
|
| - isParentDevice: true,
|
| - deviceType: 'usb',
|
| - devicePath: '/device/path',
|
| - deviceLabel: 'label',
|
| - hasMedia: true
|
| - },
|
| - shouldNotify: true
|
| - });
|
| -
|
| - return chrome.notifications.resolver.promise.then(
|
| - function(notifications) {
|
| - assertEquals(1, Object.keys(notifications).length);
|
| - assertEquals(
|
| - 'DEVICE_IMPORT',
|
| - notifications[
|
| - 'deviceImport:/device/path'].message,
|
| - 'Device notification did not have the right message.');
|
| - });
|
| - });
|
| -
|
| - reportPromise(promise, callback);
|
| -}
|
| -
|
| function testMediaDeviceWithImportDisabled(callback) {
|
| chrome.commandLinePrivate.cloudImportDisabled = true;
|
|
|
|
|