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

Unified Diff: LayoutTests/fast/dom/incompatible-operations.html

Issue 374093002: Node.appendChild should throw TypeError when newChild is not an object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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/incompatible-operations.html
diff --git a/LayoutTests/fast/dom/incompatible-operations.html b/LayoutTests/fast/dom/incompatible-operations.html
index d79f94d4b1f6c57d10b339c2158d248f91e26a7a..6c2cdebc2884af08243a42973166d9831d4e2bb0 100644
--- a/LayoutTests/fast/dom/incompatible-operations.html
+++ b/LayoutTests/fast/dom/incompatible-operations.html
@@ -30,9 +30,9 @@ aNode.appendChild(aSecondNode);
shouldThrow("aNode.appendChild(aDOMImplementation)", '"NotFoundError: Failed to execute \'appendChild\' on \'Node\': The new child element is null."');
-shouldThrow("aNode.appendChild('knort')", '"NotFoundError: Failed to execute \'appendChild\' on \'Node\': The new child element is null."');
+shouldThrow("aNode.appendChild('knort')", '"TypeError: Failed to execute \'appendChild\' on \'Node\': parameter 1 (\'newChild\') is not an object."');
-shouldThrow("aNode.appendChild(void 0)", '"NotFoundError: Failed to execute \'appendChild\' on \'Node\': The new child element is null."');
+shouldThrow("aNode.appendChild(void 0)", '"TypeError: Failed to execute \'appendChild\' on \'Node\': parameter 1 (\'newChild\') is not an object."');
shouldBeFalse("aNode.isSameNode(aDOMImplementation)");
shouldBeFalse("aNode.isSameNode('foo')");

Powered by Google App Engine
This is Rietveld 408576698