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

Side by Side Diff: chrome/test/data/extensions/api_test/filebrowser_mount/test.js

Issue 9695035: Remove duplicate mountPaths in object literals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // These have to be sync'd with file_browser_private_apitest.cc 5 // These have to be sync'd with file_browser_private_apitest.cc
6 var expectedVolume1 = { 6 var expectedVolume1 = {
7 devicePath: 'device_path1', 7 devicePath: 'device_path1',
8 mountPath: 'removable/mount_path1', 8 mountPath: 'removable/mount_path1',
9 systemPath: 'system_path1', 9 systemPath: 'system_path1',
10 filePath: 'file_path1', 10 filePath: 'file_path1',
11 deviceLabel: 'device_label1', 11 deviceLabel: 'device_label1',
12 driveLabel: 'drive_label1', 12 driveLabel: 'drive_label1',
13 deviceType: 'usb', 13 deviceType: 'usb',
14 totalSize: 1073741824, 14 totalSize: 1073741824,
15 isParent: false, 15 isParent: false,
16 isReadOnly: false, 16 isReadOnly: false,
17 hasMedia: false, 17 hasMedia: false,
18 isOnBootDevice: false 18 isOnBootDevice: false
19 }; 19 };
20 20
21 var expectedVolume2 = { 21 var expectedVolume2 = {
22 devicePath: 'device_path2', 22 devicePath: 'device_path2',
23 mountPath: 'mount_path2',
24 mountPath: 'removable/mount_path2', 23 mountPath: 'removable/mount_path2',
25 systemPath: 'system_path2', 24 systemPath: 'system_path2',
26 filePath: 'file_path2', 25 filePath: 'file_path2',
27 deviceLabel: 'device_label2', 26 deviceLabel: 'device_label2',
28 driveLabel: 'drive_label2', 27 driveLabel: 'drive_label2',
29 deviceType: 'mobile', 28 deviceType: 'mobile',
30 totalSize: 47723, 29 totalSize: 47723,
31 isParent: true, 30 isParent: true,
32 isReadOnly: true, 31 isReadOnly: true,
33 hasMedia: true, 32 hasMedia: true,
34 isOnBootDevice: true 33 isOnBootDevice: true
35 }; 34 };
36 35
37 var expectedVolume3 = { 36 var expectedVolume3 = {
38 devicePath: 'device_path3', 37 devicePath: 'device_path3',
39 mountPath: 'mount_path3',
40 mountPath: 'removable/mount_path3', 38 mountPath: 'removable/mount_path3',
41 systemPath: 'system_path3', 39 systemPath: 'system_path3',
42 filePath: 'file_path3', 40 filePath: 'file_path3',
43 deviceLabel: 'device_label3', 41 deviceLabel: 'device_label3',
44 driveLabel: 'drive_label3', 42 driveLabel: 'drive_label3',
45 deviceType: 'optical', 43 deviceType: 'optical',
46 totalSize: 0, 44 totalSize: 0,
47 isParent: true, 45 isParent: true,
48 isReadOnly: false, 46 isReadOnly: false,
49 hasMedia: false, 47 hasMedia: false,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 'getMountPoints returned wrong number of mount points.'); 198 'getMountPoints returned wrong number of mount points.');
201 for (var i = 0; i < expectedMountPoints.length; i++) { 199 for (var i = 0; i < expectedMountPoints.length; i++) {
202 chrome.test.assertTrue( 200 chrome.test.assertTrue(
203 validateObject(result[i], expectedMountPoints[i], 'mountPoint', 201 validateObject(result[i], expectedMountPoints[i], 'mountPoint',
204 treatMountPointException), 202 treatMountPointException),
205 'getMountPoints result[' + i +'] not as expected'); 203 'getMountPoints result[' + i +'] not as expected');
206 } 204 }
207 })); 205 }));
208 } 206 }
209 ]); 207 ]);
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698