Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / insert-line-break-no-scroll.html
blob58834ad383bcb20a7eb52dc34d072bd423534bb4
1 <p>Matching other execCommand identifiers, execCommand("InsertLineBreak") 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("InsertLineBreak");
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>