Index: LayoutTests/editing/spelling/spelling-with-underscore-selection.html |
diff --git a/LayoutTests/editing/spelling/spelling-with-underscore-selection.html b/LayoutTests/editing/spelling/spelling-with-underscore-selection.html |
index b5b2cdee2a146d450e9203e12c06713c7e35a496..2abe0d4463071d249372fd610360e7003e192459 100644 |
--- a/LayoutTests/editing/spelling/spelling-with-underscore-selection.html |
+++ b/LayoutTests/editing/spelling/spelling-with-underscore-selection.html |
@@ -35,7 +35,7 @@ initSpellTest("destination", "Hi, _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"); |