blob: bd134c39c41203c0b9a844f6907b5af739c1e476 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>This tests user initialized underlining of text. To manually test, underline "hello" below. WebKit should not crash.</p>
<div id="editor" contenteditable>hello</div>
<script>
document.getElementById('editor').focus();
document.execCommand('selectAll', false, null);
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.execCommand('underline', false, null);
}
</script>
</body>
</html>