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

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

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
« no previous file with comments | « LayoutTests/fast/dom/Range/range-intersectsNode-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 d372dede5e186c57c76051fa50ae52649a670cb6..b338be054eac159df35035c89b29bd274f0b4311 100644
--- a/LayoutTests/fast/dom/Range/resources/intersectsNode.js
+++ b/LayoutTests/fast/dom/Range/resources/intersectsNode.js
@@ -95,7 +95,7 @@ debug("");
debug("2.1 Detached Range, attached node");
var detachedRange = document.createRange();
detachedRange.detach();
-shouldThrow("detachedRange.intersectsNode(document.getElementById('a1'))", '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."');
+shouldThrow("detachedRange.intersectsNode(document.getElementById('a1'))", '"InvalidStateError: Failed to execute \'intersectsNode\' on \'Range\': The range has no container. Perhaps \'detatch()\' has been invoked on this object?"');
debug("");
debug("2.2 attached range, detached node");
« no previous file with comments | « LayoutTests/fast/dom/Range/range-intersectsNode-expected.txt ('k') | Source/core/dom/Range.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698