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

Unified Diff: LayoutTests/fast/forms/input-search-press-escape-key.html

Issue 484353004: Test tidying: use "escape" and "backspace" with eventSender.keyDown() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More quoting consistency wibbles Created 6 years, 4 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: LayoutTests/fast/forms/input-search-press-escape-key.html
diff --git a/LayoutTests/fast/forms/input-search-press-escape-key.html b/LayoutTests/fast/forms/input-search-press-escape-key.html
index 4f4e489b7cb5c3872a9d4f8806a05b2eff89661f..bcd5899e12ef49af9a7ee3bd906f4d6237251114 100644
--- a/LayoutTests/fast/forms/input-search-press-escape-key.html
+++ b/LayoutTests/fast/forms/input-search-press-escape-key.html
@@ -26,7 +26,7 @@ if (window.testRunner && window.eventSender) {
searchEventObserved = false;
input.focus();
setInputAttributes(input, "foo", enabled);
- eventSender.keyDown("\x1B");
+ eventSender.keyDown("escape");
shouldBeEqualToString('input.value', "");
shouldBe('searchEventObserved', 'true');
input.blur();
@@ -34,7 +34,7 @@ if (window.testRunner && window.eventSender) {
searchEventObserved = false;
input.focus();
setInputAttributes(input, "", enabled);
- eventSender.keyDown("\x1B");
+ eventSender.keyDown("escape");
shouldBeEqualToString('input.value', "");
shouldBe('searchEventObserved', 'true');
input.blur();
@@ -42,7 +42,7 @@ if (window.testRunner && window.eventSender) {
searchEventObserved = false;
input.focus();
setInputAttributes(input, "foo", enabled, readonly);
- eventSender.keyDown("\x1B");
+ eventSender.keyDown("escape");
shouldBeEqualToString('input.value', "foo");
shouldBe('searchEventObserved', 'false');
input.blur();
@@ -50,7 +50,7 @@ if (window.testRunner && window.eventSender) {
searchEventObserved = false;
input.focus();
setInputAttributes(input, "foo", disabled);
- eventSender.keyDown("\x1B");
+ eventSender.keyDown("escape");
shouldBeEqualToString('input.value', "foo");
shouldBe('searchEventObserved', 'false');
input.blur();
@@ -58,7 +58,7 @@ if (window.testRunner && window.eventSender) {
searchEventObserved = false;
input.focus();
setInputAttributes(input, "foo", disabled, readonly);
- eventSender.keyDown("\x1B");
+ eventSender.keyDown("escape");
shouldBeEqualToString('input.value', "foo");
shouldBe('searchEventObserved', 'false');
input.blur();

Powered by Google App Engine
This is Rietveld 408576698