Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / selection / 51344.html
index 0af2165..696a3e7 100644 (file)
@@ -31,7 +31,7 @@ function assert(bool) {
 
 var test = document.getElementById('test');
 var selection = window.getSelection();
-selection.setPosition(test.firstChild, 6);
+selection.collapse(test.firstChild, 6);
 selection.modify('move', 'right', 'character');
 var offset = selection.anchorOffset;
 assert(offset == 1);
@@ -39,7 +39,7 @@ test.style.display = "none";
 
 test = document.getElementById('test_rtl');
 selection = window.getSelection();
-selection.setPosition(test.firstChild, 3);
+selection.collapse(test.firstChild, 3);
 selection.modify('move', 'left', 'character');
 offset = selection.anchorOffset;
 assert(offset == 4);