Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: LayoutTests/editing/execCommand/format-block-with-block-expected.txt

Issue 101933003: Preserving inline style of the replaced block element for FormatBlock('execCommand'). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebaselining Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>"
« no previous file with comments | « LayoutTests/editing/execCommand/format-block-with-block.html ('k') | Source/core/editing/FormatBlockCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698