Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / execCommand / find-after-replace.html
index 9eaba51..461827c 100644 (file)
@@ -14,9 +14,9 @@ function runTest() {
     var sel = frame.getSelection();
     var doc = frame.document;
 
-    sel.setPosition(doc.body, 0);
+    sel.collapse(doc.body, 0);
     doc.execCommand("InsertText", false, "A B A");
-    sel.setPosition(doc.body, 0);
+    sel.collapse(doc.body, 0);
     doc.execCommand("FindString", false, "A B");
     doc.execCommand("Copy");
     doc.execCommand("FindString", false, "A");