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

Unified Diff: LayoutTests/fast/dom/Range/range-intersectsNode-exception.html

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
Index: LayoutTests/fast/dom/Range/range-intersectsNode-exception.html
diff --git a/LayoutTests/fast/dom/Range/range-intersectsNode-exception.html b/LayoutTests/fast/dom/Range/range-intersectsNode-exception.html
deleted file mode 100644
index a266a60cd4051d6656cf1089bb34946b2d75516c..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/Range/range-intersectsNode-exception.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<!-- hidden area to create the ranges being tested -->
-<div style="visibility: hidden">
- <div id=a1>a1
- <div id=b1>b1</div>
- </div>
-</div>
-
-<script>
-description("Test for Bug: 75799 - Calling intersectsNode on a detached range should throw");
-var range = document.createRange();
-range.selectNode(document.getElementById("a1"));
-range.detach();
-shouldThrow("range.intersectsNode(document.getElementById('b1'))", '"InvalidStateError: Failed to execute \'intersectsNode\' on \'Range\': The range has no container. Perhaps \'detach()\' has been invoked on this object?"');
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698