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."); |
} |