Index: LayoutTests/editing/spelling/spelling-with-punctuation-selection.html |
diff --git a/LayoutTests/editing/spelling/spelling-with-punctuation-selection.html b/LayoutTests/editing/spelling/spelling-with-punctuation-selection.html |
index cb70c48309dd8969d8832fa52278df4758f3240b..f43b9689e81bd8878977315da88e1564f3e98da5 100644 |
--- a/LayoutTests/editing/spelling/spelling-with-punctuation-selection.html |
+++ b/LayoutTests/editing/spelling/spelling-with-punctuation-selection.html |
@@ -35,7 +35,7 @@ initSpellTest("destination", "wellcome!", 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"); |