Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / execCommand / format-block-typing-style.html
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>
7
8 Markup.description("This tests ensures FormatBlock preserves the typing style.");
9
10 var test = document.getElementById('test');
11 window.getSelection().collapse(test, test.childNodes.length);
12
13 document.execCommand('Bold', false, null);
14 document.execCommand('FormatBlock', false, '');
15 document.execCommand('InsertText', false, ' world');
16
17 Markup.dump(test, '"world" should be bolded');
18
19 </script>
20 </body>
21 </html>