blob: a8f67c4a1da2b4a18f10b8b923dc21a513ef3ca1 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div id="test" contenteditable>hello</div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description("This tests ensures FormatBlock preserves the typing style.");
var test = document.getElementById('test');
window.getSelection().setPosition(test, 1);
document.execCommand('Bold', false, null);
document.execCommand('FormatBlock', false, '');
document.execCommand('InsertText', false, ' world');
Markup.dump(test, '"world" should be bolded');
</script>
</body>
</html>