Index: LayoutTests/editing/spelling/spelling-subword-selection.html |
diff --git a/LayoutTests/editing/spelling/spelling-subword-selection.html b/LayoutTests/editing/spelling/spelling-subword-selection.html |
index 46220783ef3b56bfe6728665b92f7f71a66a7931..43c3173732dddfcd2a0880a67ba1ec2858841353 100644 |
--- a/LayoutTests/editing/spelling/spelling-subword-selection.html |
+++ b/LayoutTests/editing/spelling/spelling-subword-selection.html |
@@ -35,7 +35,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"); |