Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/editing/inserting/insert_paragraph_and_style.html |
| diff --git a/third_party/WebKit/LayoutTests/editing/inserting/insert_paragraph_and_style.html b/third_party/WebKit/LayoutTests/editing/inserting/insert_paragraph_and_style.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7dd20a0941b533600811cf2a7c3ed5491d89a8ac |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/editing/inserting/insert_paragraph_and_style.html |
| @@ -0,0 +1,47 @@ |
| +<!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>', |
| + '<p>one</p>', |
| + '<p><br></p>', |
| + '<p><b>two|</b></p>', |
| + '<p><br></p>', |
| + '<p>three</p>', |
| + '</div>', |
| + ].join(''), |
| + 'insertParagraph', |
| + [ |
| + '<div contenteditable>', |
| + '<p>one</p>', |
| + '<p><br></p>', |
| + '<p><b>two</b></p>', |
| + '<p><b>|<br></b></p>', |
| + '<p><br></p>', |
| + '<p>three</p>', |
| + '</div>', |
| + ].join('')), |
| + 'insert BR in B'); |
| + |
| +test(() => assert_selection( |
|
Xiaocheng
2016/09/15 05:32:37
This is not testing against what the original test
yosin_UTC9
2016/09/15 08:36:32
Done.
|
| + [ |
| + '<div contenteditable>', |
| + '<p>one</p>', |
| + '<p>two</p>', |
| + '<p>|<br></p>', |
| + '</div>', |
| + ].join(''), |
| + 'insertParagraph', |
| + [ |
| + '<div contenteditable>', |
| + '<p>one</p>', |
| + '<p>two</p>', |
| + '<p><br></p>', |
| + '<p>|<br></p>', |
| + '</div>', |
| + ].join('')), |
| + 'insert BR beforfe BR'); |
| +</script> |