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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/resources/common.js

Issue 2100243002: Remove non-standardize key code names from event_sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix inspector tests that were missed by sed 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: third_party/WebKit/LayoutTests/fast/forms/resources/common.js
diff --git a/third_party/WebKit/LayoutTests/fast/forms/resources/common.js b/third_party/WebKit/LayoutTests/fast/forms/resources/common.js
index c392eca72b8220bf9893065b095877085e005f1d..21ad49dcf6ca6e3350cea726112810d1f4c82cab 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/resources/common.js
+++ b/third_party/WebKit/LayoutTests/fast/forms/resources/common.js
@@ -221,7 +221,11 @@ function sendString(str) {
console.log('Require eventSender.');
return;
}
- for (var i = 0; i < str.length; ++i)
- eventSender.keyDown(str.charAt(i));
+ for (var i = 0; i < str.length; ++i) {
+ var key = str.charAt(i);
+ if (key == '\n')
+ key = 'Enter';
+ eventSender.keyDown(key);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698