Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / spelling / spelling-should-select-multiple-words.html
index b0c014e..76986e5 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE html>
 <html>
 <head>
-<script src="../../fast/js/resources/js-test-pre.js"></script>
+<script src="../../resources/js-test.js"></script>
 <script src="resources/util.js"></script>
 </head>
 <body>
@@ -29,7 +29,7 @@ initSpellTest("destination", "It should be upper case.", 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()", "upper case");