Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / format-block-with-braces.html
blob27d8ef1ad2c6c314e577083515cda9fc1f84972e
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/dump-as-markup.js"></script>
5 <div style="display:inline" contenteditable="true" id="item1">
6 Format Me
7 </div>
9 <script>
10 if (window.testRunner)
11 testRunner.dumpEditingCallbacks();
13 Markup.description("This test uses FormatBlock with html brackets in the tag string passed to execCommand.");
15 Markup.dump("item1", "Before FormatBlock with <h1>");
17 var s = window.getSelection();
18 var r = document.createRange();
19 var p1 = document.getElementById("item1");
20 s.collapse(p1, 0);
21 document.execCommand("FormatBlock", false, "<h1>");
23 Markup.dump("item1", "After FormatBlock with <h1>");
25 </script>
26 </body>
27 </html>