<html> | |
<body> | |
<p>This tests querying font size when there is a typing style. WebKit should not crash and you should see 'PASS':</p> | |
<span id="test" contenteditable><br></span> | |
<script type="text/javascript"> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
window.getSelection().setPosition(document.getElementById('test').firstChild, 0); | |
document.execCommand('bold', false, null); | |
document.queryCommandValue('fontSize'); | |
document.getElementById('test').innerHTML = 'PASS'; | |
</script> | |
</body> | |
</html> |