Index: LayoutTests/editing/spelling/spelling-on-context-menu-key.html |
diff --git a/LayoutTests/editing/spelling/spelling-on-context-menu-key.html b/LayoutTests/editing/spelling/spelling-on-context-menu-key.html |
index 3d50209792d396b00430e08ec06fc84b5c4c179a..8fcc235d6a41f3ff4cde03876f3df050d2675a4b 100644 |
--- a/LayoutTests/editing/spelling/spelling-on-context-menu-key.html |
+++ b/LayoutTests/editing/spelling/spelling-on-context-menu-key.html |
@@ -31,7 +31,7 @@ initSpellTest("destination", "wellcome home.", function(textNode) { |
eventSender.keyDown("menu"); |
// Esc to close the context menu. |
- eventSender.keyDown(String.fromCharCode(0x001B)); |
+ eventSender.keyDown("escape"); |
shouldBeEqualToString("window.getSelection().toString()", "wellcome"); |
} |