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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/datetimelocal-multiple-fields/datetimelocal-multiple-fields-stepup-stepdown-from-renderer.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/datetimelocal-multiple-fields/datetimelocal-multiple-fields-stepup-stepdown-from-renderer.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/datetimelocal-multiple-fields/datetimelocal-multiple-fields-stepup-stepdown-from-renderer.html b/third_party/WebKit/LayoutTests/fast/forms/datetimelocal-multiple-fields/datetimelocal-multiple-fields-stepup-stepdown-from-renderer.html
index c2496af09697d0658c5c5796d0933fbf353ec9ae..d5d202c519274eba1c1b31dce8df967cc6429cae 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/datetimelocal-multiple-fields/datetimelocal-multiple-fields-stepup-stepdown-from-renderer.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/datetimelocal-multiple-fields/datetimelocal-multiple-fields-stepup-stepdown-from-renderer.html
@@ -34,20 +34,20 @@ function test(value, step, min, max, keySequence) {
}
function stepUp(value, step, min, max) {
- return test(value, step, min, max, ['upArrow']);
+ return test(value, step, min, max, ['ArrowUp']);
}
function stepDown(value, step, min, max) {
- return test(value, step, min, max, ['downArrow']);
+ return test(value, step, min, max, ['ArrowDown']);
}
input.type = 'datetime-local';
input.focus();
debug('Function arguments are (value, step, min, max, [keySequence]).');
debug('The hour field respects min/max attributes when they have the same date.');
-keyDown('rightArrow');
-keyDown('rightArrow');
-keyDown('rightArrow');
+keyDown('ArrowRight');
+keyDown('ArrowRight');
+keyDown('ArrowRight');
shouldBeEqualToString('stepUp("2013-01-16T17:00", 1, "2013-01-16T15:00", "2013-01-16T17:00")', '2013-01-16T15:00');
shouldBeEqualToString('stepDown("2013-01-16T15:00", 1, "2013-01-16T15:00", "2013-01-16T17:00")', '2013-01-16T17:00');
shouldBeEqualToString('stepUp("2013-01-16T17:00", 1, "2013-01-16T15:00", "2013-01-17T17:00")', '2013-01-16T18:00');

Powered by Google App Engine
This is Rietveld 408576698