REMOVABLE_DEVICE_SCANNING_MESSAGE: 'Scanning...',
DEVICE_UNKNOWN_MESSAGE: 'DEVICE_UNKNOWN: $1',
DEVICE_UNSUPPORTED_MESSAGE: 'DEVICE_UNSUPPORTED: $1',
+ DEVICE_HARD_UNPLUGGED_TITLE: 'DEVICE_HARD_UNPLUGGED_TITLE',
DEVICE_HARD_UNPLUGGED_MESSAGE: 'DEVICE_HARD_UNPLUGGED_MESSAGE',
MULTIPART_DEVICE_UNSUPPORTED_MESSAGE: 'MULTIPART_DEVICE_UNSUPPORTED: $1',
EXTERNAL_STORAGE_DISABLED_MESSAGE: 'EXTERNAL_STORAGE_DISABLED',
}
},
runtime: {
- getURL: function(path) { return path; }
+ getURL: function(path) { return path; },
+ onStartup: {
+ addListener: function() {}
+ }
}
};
registerTypicalDevice();
chrome.fileBrowserPrivate.onMountCompleted.dispatch({
- status: 'error_unsuported_filesystem',
+ status: 'error_unsupported_filesystem',
volumeMetadata: {
isParentDevice: false,
deviceType: 'usb',
chrome.notifications.items['deviceFail:/device/path'].message);
chrome.fileBrowserPrivate.onMountCompleted.dispatch({
- status: 'error_unsuported_filesystem',
+ status: 'error_unsupported_filesystem',
volumeMetadata: {
isParentDevice: false,
deviceType: 'usb',
assertEquals(0, Object.keys(chrome.notifications.items).length);
chrome.fileBrowserPrivate.onMountCompleted.dispatch({
- status: 'error_unsuported_filesystem',
+ status: 'error_unsupported_filesystem',
volumeMetadata: {
isParentDevice: false,
deviceType: 'usb',
});
assertEquals(1, Object.keys(chrome.notifications.items).length);
assertEquals('DEVICE_HARD_UNPLUGGED_MESSAGE',
- chrome.notifications.items['deviceFail:/device/path'].message);
+ chrome.notifications.items[
+ 'hardUnplugged:/device/path'].message);
}