Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / selection / unrendered-004.html
index 7f34df5..d0ac82d 100644 (file)
@@ -2,6 +2,7 @@
 <head>
 
 <style>
+body { overflow:hidden; }
 .editing { 
     border: solid red 50px;
     font-size: 24px; 
@@ -18,7 +19,7 @@
 function editingTest() {
     var elem = document.getElementById("test-2");
     var selection = window.getSelection();
-    selection.setPosition(elem.firstChild, 2);
+    selection.collapse(elem.firstChild, 2);
     extendSelectionForwardByCharacterCommand();    
     moveSelectionBackwardByCharacterCommand();    
 }