| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 * Expected files shown in Downloads with hidden enabled | 8 * Expected files shown in Downloads with hidden enabled |
| 9 * | 9 * |
| 10 * @type {!Array<!TestEntryInfo>} | 10 * @type {!Array<!TestEntryInfo>} |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 StepsRunner.run([ | 217 StepsRunner.run([ |
| 218 function() { | 218 function() { |
| 219 setupAndWaitUntilReady(null, RootPath.DRIVE).then(this.next); | 219 setupAndWaitUntilReady(null, RootPath.DRIVE).then(this.next); |
| 220 }, | 220 }, |
| 221 function(results) { | 221 function(results) { |
| 222 appId = results.windowId; | 222 appId = results.windowId; |
| 223 remoteCall.waitForElement(appId, '#gear-button').then(this.next); | 223 remoteCall.waitForElement(appId, '#gear-button').then(this.next); |
| 224 }, | 224 }, |
| 225 // Open the gear meny by a shortcut (Alt-E). | 225 // Open the gear meny by a shortcut (Alt-E). |
| 226 function() { | 226 function() { |
| 227 remoteCall.fakeKeyDown(appId, 'body', 'U+0045', false, false, true) | 227 remoteCall.fakeKeyDown(appId, 'body', 'e', 'U+0045', false, false, true) |
| 228 .then(this.next); | 228 .then(this.next); |
| 229 }, | 229 }, |
| 230 // Wait for menu to appear. | 230 // Wait for menu to appear. |
| 231 function(result) { | 231 function(result) { |
| 232 chrome.test.assertTrue(result); | 232 chrome.test.assertTrue(result); |
| 233 remoteCall.waitForElement(appId, '#gear-menu').then(this.next); | 233 remoteCall.waitForElement(appId, '#gear-menu').then(this.next); |
| 234 }, | 234 }, |
| 235 // Wait for menu to appear. | 235 // Wait for menu to appear. |
| 236 function(result) { | 236 function(result) { |
| 237 remoteCall.waitForElement(appId, | 237 remoteCall.waitForElement(appId, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 function(result) { | 271 function(result) { |
| 272 remoteCall.waitForFiles(appId, TestEntryInfo.getExpectedRows( | 272 remoteCall.waitForFiles(appId, TestEntryInfo.getExpectedRows( |
| 273 BASIC_DRIVE_ENTRY_SET), {ignoreFileSize: true, | 273 BASIC_DRIVE_ENTRY_SET), {ignoreFileSize: true, |
| 274 ignoreLastModifiedTime: true}).then(this.next); | 274 ignoreLastModifiedTime: true}).then(this.next); |
| 275 }, | 275 }, |
| 276 function() { | 276 function() { |
| 277 checkIfNoErrorsOccured(this.next); | 277 checkIfNoErrorsOccured(this.next); |
| 278 }, | 278 }, |
| 279 ]); | 279 ]); |
| 280 }; | 280 }; |
| OLD | NEW |