Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / deleting / delete-after-span-ws-002.html
index 6e51a9a..92a4061 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-1");
     var selection = window.getSelection();
-    selection.setPosition(elem.firstChild, 0);
+    selection.collapse(elem.firstChild, 0);
     for (var i = 0; i < 4; i++)
         moveSelectionForwardByCharacterCommand();
     deleteCommand();