Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Range/script-tests/range-exceptions.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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."');

Powered by Google App Engine
This is Rietveld 408576698