4 <script src=
"../../resources/dump-as-markup.js"></script>
5 <div id=
"testBlock" contenteditable
>
6 <div style=
"color: green">hello
</div>
8 <div id=
"testBlockWithBR" contenteditable
>
9 <div style=
"color: green"><br></div>
11 <div id=
"testInline" contenteditable
>
12 <span style=
"color: green">hello
</span>
17 var testElement
= document
.getElementById(id
);
18 window
.getSelection().selectAllChildren(testElement
);
20 Markup
.dump(testElement
, 'Before FormatBlock');
21 document
.execCommand('FormatBlock', false, 'h1');
22 Markup
.dump(testElement
, 'After FormatBlock');
24 Markup
.description("This test verifies that formatBlock adds the containing block element's inline style to the block-style element that replaces it.");
27 verify("testBlockWithBR");