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

Unified Diff: chrome/test/data/file_manager/unit_tests/device_handler_unittest.js

Issue 541623002: Files.app: Remove scanning notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/file_manager/unit_tests/device_handler_unittest.js
diff --git a/chrome/test/data/file_manager/unit_tests/device_handler_unittest.js b/chrome/test/data/file_manager/unit_tests/device_handler_unittest.js
index c544871a117a37899f71e73e1c582d21499be319..fa357f4d6c573e10113cf2bacfaf4a7cb2a3bb4a 100644
--- a/chrome/test/data/file_manager/unit_tests/device_handler_unittest.js
+++ b/chrome/test/data/file_manager/unit_tests/device_handler_unittest.js
@@ -25,7 +25,6 @@ function setUp() {
// Set up string assets.
loadTimeData.data = {
REMOVABLE_DEVICE_DETECTION_TITLE: 'Device detected',
- REMOVABLE_DEVICE_SCANNING_MESSAGE: 'Scanning...',
REMOVABLE_DEVICE_NAVIGATION_MESSAGE: 'DEVICE_NAVIGATION',
REMOVABLE_DEVICE_NAVIGATION_BUTTON_LABEL: '',
DEVICE_UNKNOWN_MESSAGE: 'DEVICE_UNKNOWN: $1',
@@ -358,29 +357,6 @@ function testMulitpleFail() {
chrome.notifications.items['deviceFail:/device/path'].message);
}
-function testScanCanceled() {
- chrome.fileManagerPrivate.onDeviceChanged.dispatch({
- type: 'scan_started',
- devicePath: '/device/path'
- });
- assertTrue('device:/device/path' in chrome.notifications.items);
- assertEquals('Scanning...',
- chrome.notifications.items['device:/device/path'].message);
-
- chrome.fileManagerPrivate.onDeviceChanged.dispatch({
- type: 'scan_cancelled',
- devicePath: '/device/path'
- });
- assertEquals(0, Object.keys(chrome.notifications.items).length);
-
- // Nothing happened.
- chrome.fileManagerPrivate.onDeviceChanged.dispatch({
- type: 'removed',
- devicePath: '/device/path'
- });
- assertEquals(0, Object.keys(chrome.notifications.items).length);
-}
-
function testDisabledDevice() {
chrome.fileManagerPrivate.onDeviceChanged.dispatch({
type: 'disabled',
« no previous file with comments | « chrome/common/extensions/api/file_manager_private.idl ('k') | ui/file_manager/file_manager/background/js/device_handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698