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

Unified Diff: third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-block.html

Issue 2117663002: [Reland] Remove style spans to follow the styles of the block element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-list-item.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-block.html
diff --git a/third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-block.html b/third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-block.html
new file mode 100644
index 0000000000000000000000000000000000000000..f57277feedaeea50ae5c597f0f3ff3a3bca4858f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-block.html
@@ -0,0 +1,36 @@
+<!doctype HTML>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
+<style>
+p {
+ font-size: 20px;
+ line-height: 22px;
+ color: red;
+}
+</style>
+<div id="log"></div>
+<script>
+test(() => {
+ assert_selection(
+ '<div contenteditable="true"><h1>Heading 1:</h1>^<p>|paragraph was merged.</p></div>',
+ 'delete',
+ '<div contenteditable="true"><h1>Heading 1:|paragraph was merged.</h1></div>',
+ 'Make a paragraph into a heading');
+ assert_selection(
+ '<div contenteditable="true"><pre>Preformatted text:</pre>^<p>|paragraph was merged.</p></div>',
+ 'delete',
+ '<div contenteditable="true"><pre>Preformatted text:|paragraph was merged.</pre></div>',
+ 'Make a paragraph into a pre');
+ assert_selection(
+ '<div contenteditable="true"><ul><li>List Item:</li></ul>^<p>|paragraph was merged.</p></div>',
+ 'delete',
+ '<div contenteditable="true"><ul><li>List Item:|paragraph was merged.</li></ul></div>',
+ 'Make a paragraph into a list');
+ assert_selection(
+ '<div contenteditable="true"><table><tbody><tr><td>Table:</td></tr></tbody></table>^<p>|paragraph was merged.</p></div>',
+ 'delete',
+ '<div contenteditable="true"><table><tbody><tr><td>Table:|paragraph was merged.</td></tr></tbody></table></div>',
+ 'Make a paragraph into a table');
+}, 'merge into a block by backspace');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/editing/deleting/backspace-merge-into-list-item.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698