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

Unified Diff: LayoutTests/fast/dom/Selection/script-tests/collapseToX-empty-selection.js

Issue 22608004: Improve 'Selection' exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rewording. Created 7 years, 4 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 3910c735c54b6d6da1a1673fb5cec48283f4d422..0b1840386610270d82413dae9e8eddf683f0a6ed 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()", "'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.'");
+shouldThrow("sel.collapseToStart()");
arv (Not doing code reviews) 2013/08/13 13:57:31 Why don't you want to test the message any more?
Mike West 2013/08/13 14:00:17 Laziness? I realized that `shouldThrow` will outp
arv (Not doing code reviews) 2013/08/13 14:07:49 I thought as much. The problem is that we will en
Mike West 2013/08/13 14:09:20 That's a fair point. Hrm. Ok. I'll attempt to ove
+shouldThrow("sel.collapseToEnd()");
sel.selectAllChildren(textNode);

Powered by Google App Engine
This is Rietveld 408576698