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

Unified Diff: ui/file_manager/integration_tests/file_manager/gear_menu.js

Issue 1725563004: Files: Add a shortcut Alt-E to open gear menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use canExecuteAlways. Created 4 years, 10 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
« no previous file with comments | « ui/file_manager/file_manager/main.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « ui/file_manager/file_manager/main.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698