Index: LayoutTests/editing/spelling/spelling-double-clicked-word.html |
diff --git a/LayoutTests/editing/spelling/spelling-double-clicked-word.html b/LayoutTests/editing/spelling/spelling-double-clicked-word.html |
index aa29fb13f4481fdf5f8456799f91140d3561a853..8d965428c9140100e67300a7126fa4c79853282c 100644 |
--- a/LayoutTests/editing/spelling/spelling-double-clicked-word.html |
+++ b/LayoutTests/editing/spelling/spelling-double-clicked-word.html |
@@ -39,7 +39,7 @@ initSpellTest("destination", "wellcome home.", function(textNode) { |
eventSender.mouseMoveTo(x, y); |
contextMenuElements = eventSender.contextClick(); |
// Esc key to hide the context menu. |
- eventSender.keyDown(String.fromCharCode(0x001B), null); |
+ eventSender.keyDown("escape", null); |
spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0); |
shouldBeEqualToString("spellingMarkerRange.toString()", "wellcome"); |
@@ -67,7 +67,7 @@ initSpellTest("destination", "wellcome home.", function(textNode) { |
eventSender.mouseMoveTo(x, y); |
contextMenuElements = eventSender.contextClick(); |
// Esc key to hide the context menu. |
- eventSender.keyDown(String.fromCharCode(0x001B), null); |
+ eventSender.keyDown("escape", null); |
spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0); |
shouldBeEqualToString("spellingMarkerRange.toString()", "wellcome"); |