Index: LayoutTests/editing/execCommand/format-block-with-block-expected.txt |
diff --git a/LayoutTests/editing/execCommand/format-block-with-block-expected.txt b/LayoutTests/editing/execCommand/format-block-with-block-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fa2537ca2b2d04feb958fa2c757def3c443c420c |
--- /dev/null |
+++ b/LayoutTests/editing/execCommand/format-block-with-block-expected.txt |
@@ -0,0 +1,56 @@ |
+This test verifies that formatBlock adds the containing block element's inline style to the block-style element that replaces it. |
+ |
+Before FormatBlock: |
+| " |
+" |
+| <div> |
+| style="color: green" |
+| "<#selection-anchor>hello<#selection-focus>" |
+| " |
+" |
+ |
+After FormatBlock: |
+| " |
+" |
+| <h1> |
+| style="color: green" |
+| "<#selection-anchor>hello<#selection-focus>" |
+| " |
+" |
+ |
+Before FormatBlock: |
+| " |
+" |
+| <div> |
+| style="color: green" |
+| <#selection-caret> |
+| <br> |
+| " |
+" |
+ |
+After FormatBlock: |
+| " |
+" |
+| <h1> |
+| style="color: green" |
+| <#selection-caret> |
+| <br> |
+| " |
+" |
+ |
+Before FormatBlock: |
+| " |
+" |
+| <span> |
+| style="color: green" |
+| "<#selection-anchor>hello<#selection-focus>" |
+| " |
+" |
+ |
+After FormatBlock: |
+| " |
+" |
+| <h1> |
+| <span> |
+| style="color: green" |
+| "<#selection-anchor>hello<#selection-focus>" |