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

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

Issue 23964014: Improve exception messages for detached Range objects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline. Created 7 years, 3 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
index 25344310f443836b47b10e8b135bbedacccd9e1f..1f787a2b01429d174c1af6afa63fdb1f3975ab34 100644
--- a/LayoutTests/fast/dom/Range/range-intersectsNode-exception.html
+++ b/LayoutTests/fast/dom/Range/range-intersectsNode-exception.html
@@ -15,7 +15,7 @@ description("Test for Bug: 75799 - Calling intersectsNode on a detached range sh
var range = document.createRange();
range.selectNode(document.getElementById("a1"));
range.detach();
-shouldThrow("range.intersectsNode(document.getElementById('b1'))", '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."');
+shouldThrow("range.intersectsNode(document.getElementById('b1'))", '"InvalidStateError: Failed to execute \'intersectsNode\' on \'Range\': The range has no container. Perhaps \'detatch()\' has been invoked on this object?"');
</script>
<script src="../../js/resources/js-test-post.js"></script>
</body>

Powered by Google App Engine
This is Rietveld 408576698