4 <div id="test" contenteditable>hello</div>
5 <script src="../../resources/dump-as-markup.js"></script>
8 Markup.description("This tests ensures FormatBlock preserves the typing style.");
10 var test = document.getElementById('test');
11 window.getSelection().collapse(test, test.childNodes.length);
13 document.execCommand('Bold', false, null);
14 document.execCommand('FormatBlock', false, '');
15 document.execCommand('InsertText', false, ' world');
17 Markup.dump(test, '"world" should be bolded');