Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / pasteboard / undoable-fragment-removes.html
index 9c9afb6..45e5d0b 100644 (file)
@@ -12,10 +12,10 @@ if (window.testRunner)
 var c = document.getElementById("copy");
 var p = document.getElementById("paste");
 var s = window.getSelection();
-s.setPosition(c, 0);
+s.collapse(c, 0);
 document.execCommand("SelectAll");
 document.execCommand("Copy");
-s.setPosition(p, 0);
+s.collapse(p, 0);
 document.execCommand("Paste");
 document.execCommand("Undo");
 </script>