<!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> |