OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * Opens two window of given root paths. | 8 * Opens two window of given root paths. |
9 * @param {string} rootPath1 Root path of the first window. | 9 * @param {string} rootPath1 Root path of the first window. |
10 * @param {string} rootPath2 Root path of the second window. | 10 * @param {string} rootPath2 Root path of the second window. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 return remoteCall.callRemoteTestUtil('execCommand', windowId2, ['paste']); | 51 return remoteCall.callRemoteTestUtil('execCommand', windowId2, ['paste']); |
52 }). | 52 }). |
53 then(function() { | 53 then(function() { |
54 return remoteCall.waitForFiles(windowId2, | 54 return remoteCall.waitForFiles(windowId2, |
55 [file.getExpectedRow()], | 55 [file.getExpectedRow()], |
56 {ignoreLastModifiedTime: true}); | 56 {ignoreLastModifiedTime: true}); |
57 }); | 57 }); |
58 }; | 58 }; |
59 | 59 |
60 var REMOVABLE_VOLUME_QUERY = '#directory-tree > .tree-item > .tree-row ' + | 60 var REMOVABLE_VOLUME_QUERY = '#directory-tree > .tree-item > .tree-row ' + |
61 '.volume-icon[volume-type-icon="removable"]'; | 61 '.item-icon[volume-type-icon="removable"]'; |
62 | 62 |
63 testcase.copyBetweenWindowsDriveToLocal = function() { | 63 testcase.copyBetweenWindowsDriveToLocal = function() { |
64 var windowId1; | 64 var windowId1; |
65 var windowId2; | 65 var windowId2; |
66 StepsRunner.run([ | 66 StepsRunner.run([ |
67 // Make a file in a drive directory. | 67 // Make a file in a drive directory. |
68 function() { | 68 function() { |
69 addEntries(['drive'], [ENTRIES.hello], this.next); | 69 addEntries(['drive'], [ENTRIES.hello], this.next); |
70 }, | 70 }, |
71 // Open windows. | 71 // Open windows. |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 }, | 273 }, |
274 // Copy a file between windows. | 274 // Copy a file between windows. |
275 function(appIds) { | 275 function(appIds) { |
276 copyBetweenWindows(windowId1, windowId2, ENTRIES.hello).then(this.next); | 276 copyBetweenWindows(windowId1, windowId2, ENTRIES.hello).then(this.next); |
277 }, | 277 }, |
278 function() { | 278 function() { |
279 checkIfNoErrorsOccured(this.next); | 279 checkIfNoErrorsOccured(this.next); |
280 } | 280 } |
281 ]); | 281 ]); |
282 }; | 282 }; |
OLD | NEW |