upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / forward-delete-no-scroll.html
1 <p>Matching other execCommand identifiers, execCommand("ForwardDelete") should not scroll the page to make selection visible.</p>
2 <p>This test only works in WebKit, as other engines do not implement this command.</p>
3 <div contenteditable>a</div>
4 <div style="height:10000"></div>
5 <script>
6   var text = document.getElementsByTagName('div')[0].firstChild;
7   window.getSelection().setBaseAndExtent(text, 0, text, 0);
8   window.scrollTo(0, 1000);
9   document.execCommand("ForwardDelete");
10
11   var result = (window.pageYOffset == 1000) ? "SUCCESS" : "FAILURE";
12   if (window.layoutTestController) {
13     layoutTestController.dumpAsText();
14     document.write(result);
15   } else
16     alert(result);
17 </script>