Index: LayoutTests/editing/spelling/spelling-should-select-single-word.html |
diff --git a/LayoutTests/editing/spelling/spelling-should-select-single-word.html b/LayoutTests/editing/spelling/spelling-should-select-single-word.html |
index 08bbaf03bac521d6b2ca07c9b22c452ae22d4911..557ef85cf14bb048ac93dccac093dab250b13699 100644 |
--- a/LayoutTests/editing/spelling/spelling-should-select-single-word.html |
+++ b/LayoutTests/editing/spelling/spelling-should-select-single-word.html |
@@ -30,7 +30,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"); |
@@ -46,7 +46,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); |
// Context click should select correctly spelled words only with "win" editing behavior. |
if (behaviors[i] == "mac") |