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

Unified Diff: LayoutTests/fast/events/keydown-leftright-keys.html

Issue 20986003: Define DOM_KEY_LOCATION_* constants on KeyboardEvent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 5 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/events/keydown-leftright-keys.html
diff --git a/LayoutTests/fast/events/keydown-leftright-keys.html b/LayoutTests/fast/events/keydown-leftright-keys.html
index 0bb3680a0985def0e65c8fce60fa92d600ae9fd0..7bc8b7fe510f722f92b2daa5d94e35e88c414638 100644
--- a/LayoutTests/fast/events/keydown-leftright-keys.html
+++ b/LayoutTests/fast/events/keydown-leftright-keys.html
@@ -11,8 +11,6 @@ var lastKeyboardEvent;
var VK_SHIFT = 16;
var VK_CONTROL = 17;
var VK_MENU = 18;
-var KEY_LOCATION_LEFT = 1;
-var KEY_LOCATION_RIGHT = 2;
function recordKeyEvent(ev) {
ev = ev || event;
@@ -44,13 +42,13 @@ textarea.focus();
if (window.eventSender) {
// location=0 indicates that we send events as standard keys.
- testKeyEventWithLocation("leftShift", VK_SHIFT, "KEY_LOCATION_LEFT");
- testKeyEventWithLocation("leftControl", VK_CONTROL, "KEY_LOCATION_LEFT");
- testKeyEventWithLocation("leftAlt", VK_MENU, "KEY_LOCATION_LEFT");
+ testKeyEventWithLocation("leftShift", VK_SHIFT, "KeyboardEvent.DOM_KEY_LOCATION_LEFT");
+ testKeyEventWithLocation("leftControl", VK_CONTROL, "KeyboardEvent.DOM_KEY_LOCATION_LEFT");
+ testKeyEventWithLocation("leftAlt", VK_MENU, "KeyboardEvent.DOM_KEY_LOCATION_LEFT");
- testKeyEventWithLocation("rightShift", VK_SHIFT, "KEY_LOCATION_RIGHT");
- testKeyEventWithLocation("rightControl", VK_CONTROL, "KEY_LOCATION_RIGHT");
- testKeyEventWithLocation("rightAlt", VK_MENU, "KEY_LOCATION_RIGHT");
+ testKeyEventWithLocation("rightShift", VK_SHIFT, "KeyboardEvent.DOM_KEY_LOCATION_RIGHT");
+ testKeyEventWithLocation("rightControl", VK_CONTROL, "KeyboardEvent.DOM_KEY_LOCATION_RIGHT");
+ testKeyEventWithLocation("rightAlt", VK_MENU, "KeyboardEvent.DOM_KEY_LOCATION_RIGHT");
} else {
debug("This test requires DumpRenderTree.");
}

Powered by Google App Engine
This is Rietveld 408576698