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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/script-tests/keydown-numpad-keys.js

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/events/script-tests/keydown-numpad-keys.js
diff --git a/third_party/WebKit/LayoutTests/fast/events/script-tests/keydown-numpad-keys.js b/third_party/WebKit/LayoutTests/fast/events/script-tests/keydown-numpad-keys.js
index cc8c71b8e0bd66166feec0609ec99efcf80bd24c..ca53133283948dee44c8edb7745decd5d1d4c1dd 100644
--- a/third_party/WebKit/LayoutTests/fast/events/script-tests/keydown-numpad-keys.js
+++ b/third_party/WebKit/LayoutTests/fast/events/script-tests/keydown-numpad-keys.js
@@ -31,27 +31,27 @@ document.body.insertBefore(textarea, document.body.firstChild);
textarea.focus();
if (window.eventSender) {
- testKeyEventWithLocation("pageUp", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 33);
- testKeyEventWithLocation("pageDown", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 34);
- testKeyEventWithLocation("home", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 36);
- testKeyEventWithLocation("end", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 35);
- testKeyEventWithLocation("leftArrow", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 37);
- testKeyEventWithLocation("rightArrow", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 39);
- testKeyEventWithLocation("upArrow", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 38);
- testKeyEventWithLocation("downArrow", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 40);
- testKeyEventWithLocation("insert", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 45);
- testKeyEventWithLocation("delete", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 46);
+ testKeyEventWithLocation("PageUp", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 33);
+ testKeyEventWithLocation("PageDown", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 34);
+ testKeyEventWithLocation("Home", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 36);
+ testKeyEventWithLocation("End", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 35);
+ testKeyEventWithLocation("ArrowLeft", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 37);
+ testKeyEventWithLocation("ArrowRight", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 39);
+ testKeyEventWithLocation("ArrowUp", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 38);
+ testKeyEventWithLocation("ArrowDown", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 40);
+ testKeyEventWithLocation("Insert", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 45);
+ testKeyEventWithLocation("Delete", "KeyboardEvent.DOM_KEY_LOCATION_STANDARD", 46);
- testKeyEventWithLocation("pageUp", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 33);
- testKeyEventWithLocation("pageDown", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 34);
- testKeyEventWithLocation("home", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 36);
- testKeyEventWithLocation("end", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 35);
- testKeyEventWithLocation("leftArrow", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 37);
- testKeyEventWithLocation("rightArrow", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 39);
- testKeyEventWithLocation("upArrow", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 38);
- testKeyEventWithLocation("downArrow", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 40);
- testKeyEventWithLocation("insert", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 45);
- testKeyEventWithLocation("delete", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 46);
+ testKeyEventWithLocation("PageUp", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 33);
+ testKeyEventWithLocation("PageDown", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 34);
+ testKeyEventWithLocation("Home", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 36);
+ testKeyEventWithLocation("End", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 35);
+ testKeyEventWithLocation("ArrowLeft", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 37);
+ testKeyEventWithLocation("ArrowRight", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 39);
+ testKeyEventWithLocation("ArrowUp", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 38);
+ testKeyEventWithLocation("ArrowDown", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 40);
+ testKeyEventWithLocation("Insert", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 45);
+ testKeyEventWithLocation("Delete", "KeyboardEvent.DOM_KEY_LOCATION_NUMPAD", 46);
} else {
debug("This test requires DumpRenderTree. To manually test, 1) focus on the textarea above and push numpad keys without locking NumLock and 2) see if the location= value is KeyboardEvent.DOM_KEY_LOCATION_NUMPAD (specified in DOM level 3).");
}

Powered by Google App Engine
This is Rietveld 408576698