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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/ValidityState-tooShort-input.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-input.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/ValidityState-tooShort-input.html b/third_party/WebKit/LayoutTests/fast/forms/ValidityState-tooShort-input.html
index 1a2f773310a676ceb22884c7e167ac4e9a786db8..eef334d303bf729cf173e4847ecfe654101518bb 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/ValidityState-tooShort-input.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/ValidityState-tooShort-input.html
@@ -35,11 +35,11 @@ input.setAttribute('value', 'ab');
input.minLength = 3;
input.focus();
input.setSelectionRange(2, 2); // Move the cursor at the end.
-eventSender.keyDown('backspace');
+eventSender.keyDown('Backspace');
shouldBe('input.value.length', '1');
shouldBeTrue('input.validity.tooShort');
// Make the value empty, which means valid.
-eventSender.keyDown('backspace');
+eventSender.keyDown('Backspace');
shouldBe('input.value.length', '0');
shouldBeFalse('input.validity.tooShort');
sendString('ab');
@@ -60,7 +60,7 @@ debug('');
debug('Disabling makes the control valid');
input.focus();
input.setSelectionRange(2, 2);
-eventSender.keyDown('backspace');
+eventSender.keyDown('Backspace');
shouldBeTrue('input.validity.tooShort');
shouldBeFalse('input.disabled = true; input.validity.tooShort');
shouldBeTrue('input.disabled = false; input.validity.tooShort');
@@ -88,7 +88,7 @@ input.value = fancyX + 'A'; // 4 characters, 2 grapheme cluster.
input.minLength = 2;
input.focus();
shouldBeFalse('input.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('input.value.length', '3');
shouldBeFalse('input.validity.tooShort');

Powered by Google App Engine
This is Rietveld 408576698