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

Unified Diff: LayoutTests/fast/dom/Document/script-tests/replaceChild-null-oldChild.js

Issue 23889039: Improve 'ContainerNode' exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. 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/Document/script-tests/replaceChild-null-oldChild.js
diff --git a/LayoutTests/fast/dom/Document/script-tests/replaceChild-null-oldChild.js b/LayoutTests/fast/dom/Document/script-tests/replaceChild-null-oldChild.js
index 4ad94c552fc1f1aeeef26824b479fe9669625ae5..c88757f25976a256bd4cabd2d34c64a4ffe953e2 100644
--- a/LayoutTests/fast/dom/Document/script-tests/replaceChild-null-oldChild.js
+++ b/LayoutTests/fast/dom/Document/script-tests/replaceChild-null-oldChild.js
@@ -1,3 +1,3 @@
description('Test behavior of Document.replaceChild() when oldChild is null.');
-shouldThrow('document.replaceChild(document.firstChild, null)', '"NotFoundError: An attempt was made to reference a Node in a context where it does not exist."');
+shouldThrow('document.replaceChild(document.firstChild, null)', '"NotFoundError: Failed to execute \'replaceChild\' on \'ContainerNode\': The node to be replaced is null."');

Powered by Google App Engine
This is Rietveld 408576698