| Index: third_party/WebKit/LayoutTests/editing/assert_selection.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/assert_selection.html b/third_party/WebKit/LayoutTests/editing/assert_selection.html
|
| index 4af095e9cef76703f8135b42668dbcdc5f3296de..8b0c933ef0792bc11d14cb0a0f7c98f7fcfb7ae8 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/assert_selection.html
|
| +++ b/third_party/WebKit/LayoutTests/editing/assert_selection.html
|
| @@ -61,6 +61,18 @@ test(() => {
|
| }, 'markers around table');
|
|
|
| test(() => {
|
| + assert_selection(
|
| + '<div>foo</div>',
|
| + selection => {
|
| + let doc = selection.document;
|
| + doc.documentElement.replaceChild(
|
| + doc.createTextNode('baz'), doc.body);
|
| + },
|
| + '<html><head></head>baz</html>',
|
| + 'Serialize document element instead of document.body when it is null.');
|
| +}, 'result with out body');
|
| +
|
| +test(() => {
|
| assert_equals(checked_assert_selection('fo|o', 'noop', 'fo|o'),
|
| 'no exception');
|
| }, 'no marker in output');
|
|
|