Index: LayoutTests/editing/spelling/spelling-double-clicked-word-with-underscores.html |
diff --git a/LayoutTests/editing/spelling/spelling-double-clicked-word-with-underscores.html b/LayoutTests/editing/spelling/spelling-double-clicked-word-with-underscores.html |
index 29110d08da0e84addc5fc2c02f4ce2e878075439..282be5e7a8e32029818217f0b3b2059e2093bfbc 100644 |
--- a/LayoutTests/editing/spelling/spelling-double-clicked-word-with-underscores.html |
+++ b/LayoutTests/editing/spelling/spelling-double-clicked-word-with-underscores.html |
@@ -39,7 +39,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"); |
@@ -68,7 +68,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"); |