Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / selection / skip-non-editable-1.html
index 8cf9672..9a3a40b 100644 (file)
@@ -50,7 +50,7 @@ var e1 = document.getElementById("e1");
 var e2 = document.getElementById("e2");
 var e3 = document.getElementById("e3");
 
-s.setPosition(e1.firstChild, e1.firstChild.length);
+s.collapse(e1.firstChild, e1.firstChild.length);
 s.modify("move", "forward", "character");
 s.modify("move", "forward", "character");
 assert(s.anchorNode == e2.firstChild && s.anchorOffset == 0);
@@ -59,7 +59,7 @@ s.modify("move", "backward", "character");
 s.modify("move", "backward", "character");
 assert(s.anchorNode == e1.firstChild && s.anchorOffset == e1.firstChild.length);
     
-s.setPosition(e2.firstChild, e2.firstChild.length);
+s.collapse(e2.firstChild, e2.firstChild.length);
 s.modify("move", "forward", "character");
 s.modify("move", "forward", "character");
 assert(s.anchorNode == e3.firstChild && s.anchorOffset == 0);