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

Unified Diff: LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline 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/DOMImplementation/createDocumentType-err-expected.txt
diff --git a/LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt b/LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt
index f0d062a5b701bbf8aa61ef877fdc40580fe82beb..31fd9e0a9adf63e83f781210a19a3d1f0d2df6c2 100644
--- a/LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt
+++ b/LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt
@@ -3,16 +3,16 @@ createDocument tests modeled after mozilla's testing
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS document.implementation.createDocumentType('foo') threw exception TypeError: Not enough arguments.
-PASS document.implementation.createDocumentType('foo', null) threw exception TypeError: Not enough arguments.
-PASS document.implementation.createDocumentType(undefined, undefined) threw exception TypeError: Not enough arguments.
-PASS document.implementation.createDocumentType(null, undefined) threw exception TypeError: Not enough arguments.
-PASS document.implementation.createDocumentType(undefined, null) threw exception TypeError: Not enough arguments.
+PASS document.implementation.createDocumentType('foo') threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 1 present..
+PASS document.implementation.createDocumentType('foo', null) threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
+PASS document.implementation.createDocumentType(undefined, undefined) threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
+PASS document.implementation.createDocumentType(null, undefined) threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
+PASS document.implementation.createDocumentType(undefined, null) threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
PASS document.implementation.createDocumentType(undefined, undefined, null) did not throw exception.
-PASS document.implementation.createDocumentType(null, null) threw exception TypeError: Not enough arguments.
-PASS document.implementation.createDocumentType(null, '') threw exception TypeError: Not enough arguments.
-PASS document.implementation.createDocumentType('', null) threw exception TypeError: Not enough arguments.
-PASS document.implementation.createDocumentType('', '') threw exception TypeError: Not enough arguments.
+PASS document.implementation.createDocumentType(null, null) threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
+PASS document.implementation.createDocumentType(null, '') threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
+PASS document.implementation.createDocumentType('', null) threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
+PASS document.implementation.createDocumentType('', '') threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
PASS document.implementation.createDocumentType('a:', null, null) threw exception NamespaceError: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces..
PASS document.implementation.createDocumentType(':foo', null, null) threw exception NamespaceError: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces..
PASS document.implementation.createDocumentType(':', null, null) threw exception NamespaceError: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces..

Powered by Google App Engine
This is Rietveld 408576698