Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / input / option-page-up-down.html
index 30ecab3..26c5880 100644 (file)
@@ -24,7 +24,7 @@ function runFrameCursorMoveTest() {
     var body = doc.body;
     body.innerHTML = generateContent();
     frame.focus();
-    frame.getSelection().setPosition(body.firstChild, 0);
+    frame.getSelection().collapse(body.firstChild, 0);
     runCursorMoveTest("iframe", frame, frame);
 }
 
@@ -32,7 +32,7 @@ function runDivCursorMoveTest() {
     var editable = document.getElementById('editable');
     editable.innerHTML = generateContent();
     editable.focus();
-    window.getSelection().setPosition(editable, 0);
+    window.getSelection().collapse(editable, 0);
     runCursorMoveTest("div", editable, window);
 }