Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / forward-delete-no-scroll.html
blob35256a7e8bca0b1277e2a63c9038b7fda8f4e4be
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");
11 var result = (window.pageYOffset == 1000) ? "SUCCESS" : "FAILURE";
12 if (window.testRunner) {
13 testRunner.dumpAsText();
14 document.write(result);
15 } else
16 alert(result);
17 </script>