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

Unified Diff: LayoutTests/fast/dom/Selection/script-tests/collapseToX-empty-selection.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/Selection/script-tests/collapseToX-empty-selection.js
diff --git a/LayoutTests/fast/dom/Selection/script-tests/collapseToX-empty-selection.js b/LayoutTests/fast/dom/Selection/script-tests/collapseToX-empty-selection.js
index 5d6bb37fd4a37531d14c1751714cd769b7ee6047..3910c735c54b6d6da1a1673fb5cec48283f4d422 100644
--- a/LayoutTests/fast/dom/Selection/script-tests/collapseToX-empty-selection.js
+++ b/LayoutTests/fast/dom/Selection/script-tests/collapseToX-empty-selection.js
@@ -4,8 +4,8 @@ var sel = window.getSelection();
var textNode = document.createTextNode("abcdef");
document.body.appendChild(textNode);
-shouldThrow("sel.collapseToStart()", "'Error: InvalidStateError: DOM Exception 11'");
-shouldThrow("sel.collapseToEnd()", "'Error: InvalidStateError: DOM Exception 11'");
+shouldThrow("sel.collapseToStart()", "'InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.'");
+shouldThrow("sel.collapseToEnd()", "'InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.'");
sel.selectAllChildren(textNode);

Powered by Google App Engine
This is Rietveld 408576698