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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/ValidityState-tooShort-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/forms/ValidityState-tooShort-textarea.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/ValidityState-tooShort-textarea.html b/third_party/WebKit/LayoutTests/fast/forms/ValidityState-tooShort-textarea.html
index 9db04268325bd8ba86c71f809aaff699957ab907..68e9c82fe7be8f5b5d5eff3dd28ac2a3f7167b20 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/ValidityState-tooShort-textarea.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/ValidityState-tooShort-textarea.html
@@ -35,11 +35,11 @@ textarea.defaultValue = 'ab';
textarea.minLength = 3;
textarea.focus();
textarea.setSelectionRange(2, 2); // Move the cursor at the end.
-eventSender.keyDown('backspace');
+eventSender.keyDown('Backspace');
shouldBe('textarea.value.length', '1');
shouldBeTrue('textarea.validity.tooShort');
// Make the value empty, which means valid.
-eventSender.keyDown('backspace');
+eventSender.keyDown('Backspace');
shouldBe('textarea.value.length', '0');
shouldBeFalse('textarea.validity.tooShort');
sendString('ab');
@@ -62,7 +62,7 @@ debug('');
debug('Disabling makes the control valid');
textarea.focus();
textarea.setSelectionRange(2, 2); // Move the cursor at the end.
-eventSender.keyDown('backspace');
+eventSender.keyDown('Backspace');
shouldBeTrue('textarea.validity.tooShort');
shouldBeFalse('textarea.disabled = true; textarea.validity.tooShort');
shouldBeTrue('textarea.disabled = false; textarea.validity.tooShort');
@@ -76,7 +76,7 @@ parent.innerHTML = '<form><textarea minlength=3>ab</textarea></form>';
textarea = parent.firstChild.firstChild;
textarea.focus();
textarea.setSelectionRange(2, 2);
-eventSender.keyDown('backspace');
+eventSender.keyDown('Backspace');
shouldBeTrue('textarea.validity.tooShort');
parent.firstChild.reset();
shouldBe('textarea.value', '"ab"');
@@ -103,7 +103,7 @@ textarea.value = fancyX + 'A'; // 4 characters, 2 grapheme cluster.
textarea.minLength = 2;
textarea.focus();
shouldBeFalse('textarea.validity.tooShort');
-eventSender.keyDown('backspace'); // Make the value dirty, 1 grapheme remains.
+eventSender.keyDown('Backspace'); // Make the value dirty, 1 grapheme remains.
// Not too short because there are three characters.
shouldBe('textarea.value.length', '3');
shouldBeFalse('textarea.validity.tooShort');

Powered by Google App Engine
This is Rietveld 408576698