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

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

Issue 2046143002: Send 'key' from fake keyboard events generated by file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix additional tests I missed Created 4 years, 6 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
Index: ui/file_manager/integration_tests/file_manager/tab_index.js
diff --git a/ui/file_manager/integration_tests/file_manager/tab_index.js b/ui/file_manager/integration_tests/file_manager/tab_index.js
index 124ca50127bd7da2a2a90ddb4dc793c412486f34..91c00880e12bacf9052b3931085b74028208190b 100644
--- a/ui/file_manager/integration_tests/file_manager/tab_index.js
+++ b/ui/file_manager/integration_tests/file_manager/tab_index.js
@@ -23,7 +23,7 @@ testcase.searchBoxFocus = function() {
function(element) {
remoteCall.callRemoteTestUtil(
'fakeKeyDown', appId,
- ['body', 'U+0046', true, false, false],
+ ['body', 'f', 'U+0046', true, false, false],
this.next);
},
// Check that the search box has the focus.
@@ -35,7 +35,7 @@ testcase.searchBoxFocus = function() {
function(element) {
remoteCall.callRemoteTestUtil(
'fakeKeyDown', appId,
- ['#search-box input', 'U+001B', false, false, false],
+ ['#search-box input', 'Escape', 'U+001B', false, false, false],
this.next);
},
// Check that the file list has the focus.
@@ -270,7 +270,8 @@ function tabindexFocus(dialogParams, volumeName, expectedSet, initialize,
promise = promise.then(function() {
// Closes the window by pressing Enter.
return remoteCall.callRemoteTestUtil(
- 'fakeKeyDown', appId, ['#file-list', 'Enter', false, false, false]);
+ 'fakeKeyDown', appId, ['#file-list', 'Enter', 'Enter', false, false,
+ false]);
});
return promise;

Powered by Google App Engine
This is Rietveld 408576698