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

Unified Diff: LayoutTests/fast/dom/Range/resources/intersectsNode.js

Issue 252783002: Make Range.detach() a no-op (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 8 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
« no previous file with comments | « LayoutTests/fast/dom/Range/range-isPointInRange-expected.txt ('k') | Source/core/dom/Range.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/Range/resources/intersectsNode.js
diff --git a/LayoutTests/fast/dom/Range/resources/intersectsNode.js b/LayoutTests/fast/dom/Range/resources/intersectsNode.js
index 4be1931d4d8dcd5f7a2b86552ab14cf78c4172b2..10122b0cbf31657dd7a0a71c55b8e4b3ac53a5a0 100644
--- a/LayoutTests/fast/dom/Range/resources/intersectsNode.js
+++ b/LayoutTests/fast/dom/Range/resources/intersectsNode.js
@@ -94,8 +94,8 @@ debug("");
debug("2.1 Detached Range, attached node");
var detachedRange = document.createRange();
-detachedRange.detach();
-shouldThrow("detachedRange.intersectsNode(document.getElementById('a1'))", '"InvalidStateError: Failed to execute \'intersectsNode\' on \'Range\': The range has no container. Perhaps \'detach()\' has been invoked on this object?"');
+detachedRange.detach(); // No-op.
+shouldBeFalse("detachedRange.intersectsNode(document.getElementById('a1'))");
debug("");
debug("2.2 attached range, detached node");
« no previous file with comments | « LayoutTests/fast/dom/Range/range-isPointInRange-expected.txt ('k') | Source/core/dom/Range.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698