| Index: third_party/WebKit/LayoutTests/fast/dom/Range/31684.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/Range/31684.html b/third_party/WebKit/LayoutTests/fast/dom/Range/31684.html
|
| index 26031870960951f4eb39a297b8ae79834a759ebd..045f55a6373caa6fd8f06d910af007e28734fc17 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/Range/31684.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/Range/31684.html
|
| @@ -4,6 +4,17 @@
|
| <script src="../../../resources/js-test.js"></script>
|
| </head>
|
| <body>
|
| -<script src="script-tests/31684.js"></script>
|
| +<script>
|
| +description(
|
| + "This test checks an orphan text node cannot be surrounded by the range. (bug31684)"
|
| +);
|
| +
|
| +var range = document.createRange();
|
| +var text = document.createTextNode('hello');
|
| +var element = document.createElement("div");
|
| +range.selectNodeContents(text);
|
| +
|
| +shouldThrow("range.surroundContents(element)", '"HierarchyRequestError: Failed to execute \'surroundContents\' on \'Range\': The container node is a detached character data node; no parent node is available for insertion."');
|
| +</script>
|
| </body>
|
| </html>
|
|
|