| Index: third_party/WebKit/LayoutTests/editing/inserting/merge_after_delete.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/inserting/merge_after_delete.html b/third_party/WebKit/LayoutTests/editing/inserting/merge_after_delete.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..865efc63ebc87a6b383d0ebe70de6c9f3d3661aa
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/editing/inserting/merge_after_delete.html
|
| @@ -0,0 +1,44 @@
|
| +<!doctype html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../assert_selection.js"></script>
|
| +<script>
|
| +test(() => assert_selection(
|
| + '<div contenteditable><div>f^oo</div>bar|<br></div>',
|
| + 'insertHTML <div>foo</div><br class="Apple-interchange-newline">',
|
| + '<div contenteditable><div>ffoo</div><div>|<br></div></div>'),
|
| + 'BR interchange-newline is not inserted');
|
| +
|
| +test(() => assert_selection(
|
| + [
|
| + '<div contenteditable>',
|
| + '<div style="color:red">b^ar</div>',
|
| + '<div style="color:blue">baz|<br></div>',
|
| + '</div>',
|
| + ].join(''),
|
| + 'insertHTML <div>FOO</div><div>BAR</div>',
|
| + [
|
| + '<div contenteditable>',
|
| + '<div style="color:red">bFOO</div>',
|
| + // last BR isn't copied from original DIV.
|
| + '<div>BAR|</div>',
|
| + '</div>',
|
| + ].join('')),
|
| + 'Use existing DIV for partial replacement');
|
| +
|
| +test(() => assert_selection(
|
| + [
|
| + '<div contenteditable>',
|
| + '<div style="color:red">b^ar</div>',
|
| + 'baz|<br>',
|
| + '</div>',
|
| + ].join(''),
|
| + 'insertHTML <div>FOO</div><div>BAR</div>',
|
| + [
|
| + '<div contenteditable>',
|
| + '<div style="color:red">bFOO</div>',
|
| + '<div>BAR|</div>',
|
| + '</div>',
|
| + ].join('')),
|
| + 'Replace text+BR to DIV');
|
| +</script>
|
|
|