| Index: third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/range-exceptions.js
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/range-exceptions.js b/third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/range-exceptions.js
|
| deleted file mode 100644
|
| index c036cc6853e6303126b95acee3e497241df41a81..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/range-exceptions.js
|
| +++ /dev/null
|
| @@ -1,24 +0,0 @@
|
| -description(
|
| -"This test checks some DOM Range exceptions."
|
| -);
|
| -
|
| -// Test to be sure the name BAD_BOUNDARYPOINTS_ERR dumps properly.
|
| -var node = document.createElement("DIV");
|
| -node.innerHTML = "<BAR>AB<MOO>C</MOO>DE</BAR>";
|
| -shouldBe("node.innerHTML", "'<bar>AB<moo>C</moo>DE</bar>'");
|
| -
|
| -// Ensure that we throw BAD_BOUNDARYPOINTS_ERR when trying to split a comment
|
| -// (non-text but character-offset node). (Test adapted from Acid3.)
|
| -var c1 = document.createComment("aaaaa");
|
| -node.appendChild(c1);
|
| -var c2 = document.createComment("bbbbb");
|
| -node.appendChild(c2);
|
| -var r = document.createRange();
|
| -r.setStart(c1, 2);
|
| -r.setEnd(c2, 3);
|
| -shouldThrow("r.surroundContents(document.createElement('a'))", '"InvalidStateError: Failed to execute \'surroundContents\' on \'Range\': The Range has partially selected a non-Text node."');
|
| -
|
| -// But not when we don't try to split the comment.
|
| -r.setStart(c1, 0);
|
| -r.setEnd(c1, 5);
|
| -shouldThrow("r.surroundContents(document.createElement('a'))", '"HierarchyRequestError: Failed to execute \'surroundContents\' on \'Range\': The node to be inserted is a \'A\' node, which may not be inserted here."');
|
|
|