| Index: third_party/WebKit/LayoutTests/editing/inserting/return_key_with_selection.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/inserting/return_key_with_selection.html b/third_party/WebKit/LayoutTests/editing/inserting/return_key_with_selection.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..18018cd81bee68dff9ddff53d4cef3eac763cba5
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/editing/inserting/return_key_with_selection.html
|
| @@ -0,0 +1,63 @@
|
| +<!doctype html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../assert_selection.js"></script>
|
| +<div id="log"></div>
|
| +<script>
|
| +test(() => assert_selection(
|
| + [
|
| + '<div contenteditable>',
|
| + '<div>foo</div><div>^bar</div>|<div>baz</div>',
|
| + '</div>',
|
| + ].join(''),
|
| + 'insertParagraph',
|
| + [
|
| + '<div contenteditable>',
|
| + '<div>foo</div><div><br></div><div>|baz</div>',
|
| + '</div>',
|
| + ].join('')),
|
| + 'insertParagraph until end of DIV');
|
| +
|
| +test(() => assert_selection(
|
| + [
|
| + '<div contenteditable>',
|
| + '<div>foo</div><div>^bar</div><div>|baz</div>',
|
| + '</div>',
|
| + ].join(''),
|
| + 'insertParagraph',
|
| + [
|
| + '<div contenteditable>',
|
| + '<div>foo</div><div><br></div><div>|baz</div>',
|
| + '</div>',
|
| + ].join('')),
|
| + 'insertParagraph until start of following DIV');
|
| +
|
| +test(() => assert_selection(
|
| + [
|
| + '<div contenteditable>',
|
| + '<div>foo</div><div>^bar</div><div id="baz">b|baz</div>',
|
| + '</div>',
|
| + ].join(''),
|
| + 'insertParagraph',
|
| + [
|
| + '<div contenteditable>',
|
| + // "div[id="baz"] has been gone.
|
| + '<div>foo</div><div><br></div><div>|baz</div>',
|
| + '</div>',
|
| + ].join('')),
|
| + 'insertParagraph crossing end of DIV');
|
| +
|
| +test(() => assert_selection(
|
| + [
|
| + '<div contenteditable>',
|
| + '<div>foo</div><div>^bar|</div><div>baz</div>',
|
| + '</div>',
|
| + ].join(''),
|
| + 'insertParagraph',
|
| + [
|
| + '<div contenteditable>',
|
| + '<div>foo</div><div><br></div><div>|<br></div><div>baz</div>',
|
| + '</div>',
|
| + ].join('')),
|
| + 'insertParagraph on fully selected line');
|
| +</script>
|
|
|