Index: ui/file_manager/integration_tests/file_manager/gear_menu.js |
diff --git a/ui/file_manager/integration_tests/file_manager/gear_menu.js b/ui/file_manager/integration_tests/file_manager/gear_menu.js |
index b2c694f3ae3325527c3645bfc648f56d9363215b..444618606e282f31a4dc06233d8d6ff602c636a7 100644 |
--- a/ui/file_manager/integration_tests/file_manager/gear_menu.js |
+++ b/ui/file_manager/integration_tests/file_manager/gear_menu.js |
@@ -66,7 +66,7 @@ function getTestCaseStepsForHiddenFiles(basicSet, hiddenEntrySet) { |
appId = id; |
remoteCall.waitForElement(appId, '#gear-button').then(this.next); |
}, |
- // Click the gear menu. |
+ // Open the gear menu by clicking the gear button. |
function() { |
remoteCall.callRemoteTestUtil( |
'fakeMouseClick', appId, ['#gear-button'], this.next); |
@@ -222,10 +222,10 @@ testcase.hideGoogleDocs = function() { |
appId = results.windowId; |
remoteCall.waitForElement(appId, '#gear-button').then(this.next); |
}, |
- // Click the gear menu. |
+ // Open the gear meny by a shortcut (Alt-E). |
function() { |
- remoteCall.callRemoteTestUtil( |
- 'fakeMouseDown', appId, ['#gear-button'], this.next); |
+ remoteCall.fakeKeyDown(appId, 'body', 'U+0045', false, false, true) |
+ .then(this.next); |
}, |
// Wait for menu to appear. |
function(result) { |