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>
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
);