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>
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");
11 var result = (window.pageYOffset == 1000) ? "SUCCESS" : "FAILURE";
12 if (window.layoutTestController) {
13 layoutTestController.dumpAsText();
14 document.write(result);