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

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

Issue 23404003: Make Range methods to work with detached node (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-08-27T11:16:22 Created 7 years, 4 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: LayoutTests/fast/dom/Range/script-tests/range-exceptions.js
diff --git a/LayoutTests/fast/dom/Range/script-tests/range-exceptions.js b/LayoutTests/fast/dom/Range/script-tests/range-exceptions.js
index 762d56c5c79118671f669e13efd42fb57c5c9ae0..31749c57da27c160ddf52fa6cedb40b71cb45805 100644
--- a/LayoutTests/fast/dom/Range/script-tests/range-exceptions.js
+++ b/LayoutTests/fast/dom/Range/script-tests/range-exceptions.js
@@ -6,12 +6,6 @@ description(
var node = document.createElement("DIV");
node.innerHTML = "<BAR>AB<MOO>C</MOO>DE</BAR>";
shouldBe("node.innerHTML", "'<bar>AB<moo>C</moo>DE</bar>'");
-var range = document.createRange();
-range.setStart(node.firstChild, 1);
-range.setEnd(node.firstChild, 2);
-var foo = document.createElement("FOO");
-shouldBe("foo.outerHTML", "'<foo></foo>'");
-shouldThrow("range.surroundContents(foo)");
// Ensure that we throw BAD_BOUNDARYPOINTS_ERR when trying to split a comment
// (non-text but character-offset node). (Test adapted from Acid3.)

Powered by Google App Engine
This is Rietveld 408576698