blob: 4aa2c913e077dd78dc80ee7630798bc23e30a21a [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, 5);
document.execCommand('Bold', false, null);
document.execCommand('FormatBlock', false, '');
document.execCommand('InsertText', false, ' world');
Markup.dump(test, '"world" should be bolded');
</script>
</body>
</html>