| Index: third_party/WebKit/LayoutTests/editing/selection/modify_move/move-by-paragraph.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/selection/modify_move/move-by-paragraph.html b/third_party/WebKit/LayoutTests/editing/selection/modify_move/move-by-paragraph.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..abe5ed7cab28d41ef98a37e34df1482e7b29bdaa
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/editing/selection/modify_move/move-by-paragraph.html
|
| @@ -0,0 +1,27 @@
|
| +<!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>foo<div>bar|</div>baz</div>',
|
| + selection => selection.modify('move', 'backward', 'paragraph'),
|
| + '<div>foo|<div>bar</div>baz</div>');
|
| + assert_selection(
|
| + '<div>foo<span>bar|</span>baz</div>',
|
| + selection => selection.modify('move', 'backward', 'paragraph'),
|
| + '<div>|foo<span>bar</span>baz</div>');
|
| + }, 'Selection.modify move backward by paragraph');
|
| +
|
| +test(() => {
|
| + assert_selection(
|
| + '<div>foo<div>|bar</div>baz</div>',
|
| + selection => selection.modify('move', 'forward', 'paragraph'),
|
| + '<div>foo<div>bar</div>|baz</div>');
|
| + assert_selection(
|
| + '<div>foo<span>|bar</span>baz</div>',
|
| + selection => selection.modify('move', 'forward', 'paragraph'),
|
| + '<div>foo<span>bar</span>baz|</div>');
|
| +}, 'Selection.modify move forward by paragraph');
|
| +</script>
|
|
|