Index: LayoutTests/fast/js/script-tests/dot-node-base-exception.js |
diff --git a/LayoutTests/fast/js/script-tests/dot-node-base-exception.js b/LayoutTests/fast/js/script-tests/dot-node-base-exception.js |
index 201e0a9b04fc41acb3b315cc766799078b26485b..2035bbac88dd03cbf44da4fefb05c52b01a14711 100644 |
--- a/LayoutTests/fast/js/script-tests/dot-node-base-exception.js |
+++ b/LayoutTests/fast/js/script-tests/dot-node-base-exception.js |
@@ -2,5 +2,5 @@ description( |
"This test checks that a correct exception is raised when calculating the base value of a dot expression fails." |
); |
-// Should be a DOM exception, not just some "TypeError: Null value". |
-shouldThrow('(document.appendChild()).foobar()', '"NotFoundError: Failed to execute \'appendChild\' on \'Node\': The new child element is null."'); |
+// Should throw TypeError with appropriate message. |
+shouldThrow('(document.appendChild()).foobar()', '"TypeError: Failed to execute \'appendChild\' on \'Node\': 1 argument required, but only 0 present."'); |