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

Unified Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-textarea.html

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/spatial-navigation/snav-textarea.html
diff --git a/third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-textarea.html b/third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-textarea.html
index 836b7db8dc22be84961cd17d3ff793f5aa900060..1a7130caf38057b7eb124f5092ba97f9217e7d74 100644
--- a/third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-textarea.html
+++ b/third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-textarea.html
@@ -85,8 +85,12 @@
document.getElementById('start').value = "";
var text = 'A text containing a space\nand a new line';
- for (var i = 0; i < text.length; ++i)
- eventSender.keyDown(text.charAt(i));
+ for (var i = 0; i < text.length; ++i) {
+ var key = text.charAt(i);
+ if (key == '\n')
+ key = 'Enter';
+ eventSender.keyDown(key);
+ }
shouldBeEqualToString("document.getElementById('start').value", text);
testRunner.notifyDone();

Powered by Google App Engine
This is Rietveld 408576698