Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / selection / move-by-character-brute-force.html
index 4d2c7d4..c2acd65 100644 (file)
@@ -8,7 +8,7 @@ function hasSimpleCaretMovement(charCode) {
     var testString = "aaaaa" + String.fromCharCode(charCode) + "bbbb";
     element.textContent = testString;
     var selection = window.getSelection();
-    selection.setPosition(element, 0);
+    selection.collapse(element, 0);
     for (var i = 0; i < testString.length; ++i) {
         selection.modify("move", "forward", "character");
         if (selection.baseOffset != i + 1)