Index: LayoutTests/editing/spelling/spelling-with-whitespace-selection.html |
diff --git a/LayoutTests/editing/spelling/spelling-with-whitespace-selection.html b/LayoutTests/editing/spelling/spelling-with-whitespace-selection.html |
index 26ac2f30e8dfb7788c5a6a041324e5cba072ea31..17cd5b50004a36e8115a7b64b58858970326c7bb 100644 |
--- a/LayoutTests/editing/spelling/spelling-with-whitespace-selection.html |
+++ b/LayoutTests/editing/spelling/spelling-with-whitespace-selection.html |
@@ -34,7 +34,7 @@ initSpellTest("destination", "hello, 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"); |