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

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

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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 563c741877414c46419a0d796c09e3707f9cdc1c..762d56c5c79118671f669e13efd42fb57c5c9ae0 100644
--- a/LayoutTests/fast/dom/Range/script-tests/range-exceptions.js
+++ b/LayoutTests/fast/dom/Range/script-tests/range-exceptions.js
@@ -22,9 +22,9 @@ node.appendChild(c2);
var r = document.createRange();
r.setStart(c1, 2);
r.setEnd(c2, 3);
-shouldThrow("r.surroundContents(document.createElement('a'))", '"Error: InvalidStateError: DOM Exception 11"');
+shouldThrow("r.surroundContents(document.createElement('a'))", '"InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable."');
// But not when we don't try to split the comment.
r.setStart(c1, 0);
r.setEnd(c1, 5);
-shouldThrow("r.surroundContents(document.createElement('a'))", '"Error: HierarchyRequestError: DOM Exception 3"');
+shouldThrow("r.surroundContents(document.createElement('a'))", '"HierarchyRequestError: A Node was inserted somewhere it doesn\'t belong."');
« no previous file with comments | « LayoutTests/fast/dom/Range/script-tests/31684.js ('k') | LayoutTests/fast/dom/Range/surroundContents-1.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698