Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / format-block-typing-style.html
blob627c8eafc9add43970c55c272bb1d2286b5bcb82
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="test" contenteditable>hello</div>
5 <script src="../../resources/dump-as-markup.js"></script>
6 <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');
19 </script>
20 </body>
21 </html>