Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / spelling / spelling-double-clicked-word-with-underscores.html
index 29110d0..282be5e 100644 (file)
@@ -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");