Index: third_party/WebKit/LayoutTests/fast/dom/Range/surroundContents-1.html |
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Range/surroundContents-1.html b/third_party/WebKit/LayoutTests/fast/dom/Range/surroundContents-1.html |
deleted file mode 100644 |
index d655ae9140120aea1475c3fdc5ae2dcc52f17cdd..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/fast/dom/Range/surroundContents-1.html |
+++ /dev/null |
@@ -1,35 +0,0 @@ |
-<p>This tests for HIERARCHY_REQUEST_ERRs when calling Range::surroundContents.</p> |
-<div id="select" style="border: 1px solid blue;">Hello world.</div> |
-<div id="insert" style="border: 1px solid red;"></div> |
-<ul id="console"></ul> |
-<script> |
-function log(str) { |
- var li = document.createElement("li"); |
- li.appendChild(document.createTextNode(str)); |
- var console = document.getElementById("console"); |
- console.appendChild(li); |
-} |
- |
-var range = document.createRange(); |
-var select = document.getElementById("select"); |
-var text = select.firstChild; |
- |
-var insert = document.getElementById("insert"); |
- |
-range.setStart(text, 0); |
-range.setEnd(text, text.length); |
- |
-try { |
- range.surroundContents(select); |
-} catch (e) { |
- var error = "HierarchyRequestError: Failed to execute 'surroundContents' on 'Range': The node provided contains the insertion point; it may not be inserted into itself."; |
- if (e != error) |
- log ("Failure, expected: " + error + "Was " + e); |
-} |
- |
-try { |
- range.surroundContents(insert); |
-} catch (e) { |
- log ("Failure: " + error); |
-} |
-</script> |