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: components/test_runner/event_sender.cc

Issue 2080963002: Fix inspector layout tests to deal send tab via event sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/event_sender.cc
diff --git a/components/test_runner/event_sender.cc b/components/test_runner/event_sender.cc
index 4c608b635543ec83057561f96d9d86cf9ca7c04e..e2db37e3378dc4ea9ca5d5528ec45ecabc688421 100644
--- a/components/test_runner/event_sender.cc
+++ b/components/test_runner/event_sender.cc
@@ -1565,6 +1565,10 @@ void EventSender::KeyDown(const std::string& code_str,
code = ui::VKEY_ESCAPE;
domKeyString.assign("Escape");
domCodeString.assign("Escape");
+ } else if ("Tab" == code_str) {
+ code = ui::VKEY_TAB;
+ domKeyString.assign("Tab");
+ domCodeString.assign("Tab");
} else {
// Compare the input string with the function-key names defined by the
// DOM spec (i.e. "F1",...,"F24"). If the input string is a function-key
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/edit/edit-dom-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698