Chromium Code Reviews| 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..d9206c8b81cf9ccd18de28a97895bf3ecf4cbab2 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 is is null.'); |
|
yoichio
2016/07/20 04:20:30
"when 'it' is null." ?
yosin_UTC9
2016/07/20 04:39:06
Done
|
| +}, 'result with out body'); |
| + |
| +test(() => { |
| assert_equals(checked_assert_selection('fo|o', 'noop', 'fo|o'), |
| 'no exception'); |
| }, 'no marker in output'); |