19 lines
443 B
HTML
19 lines
443 B
HTML
<!DOCTYPE>
|
|
<html>
|
|
<body onload="runTest()">
|
|
<script>
|
|
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
function runTest() {
|
|
document.open();
|
|
getSelection().setPosition(document, 0);
|
|
getSelection().modify("move", "forward", "line");
|
|
document.writeln('This test ensures WebKit does not crash when extending selection forward by line in an empty document.<br><br>');
|
|
document.writeln('PASS.');
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|