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> |