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

Unified Diff: LayoutTests/fast/dom/implementation-api-args-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/implementation-api-args-expected.txt
diff --git a/LayoutTests/fast/dom/implementation-api-args-expected.txt b/LayoutTests/fast/dom/implementation-api-args-expected.txt
index 26cae83c37bf400c43ef806296c95c70c35975b7..f44804fe7e246d231b4ecd388c2941566d29b7c2 100644
--- a/LayoutTests/fast/dom/implementation-api-args-expected.txt
+++ b/LayoutTests/fast/dom/implementation-api-args-expected.txt
@@ -5,9 +5,9 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId);
-PASS document.implementation.createDocumentType() threw exception TypeError: Not enough arguments.
-PASS document.implementation.createDocumentType("qualifiedName") threw exception TypeError: Not enough arguments.
-PASS document.implementation.createDocumentType("qualifiedName", "publicId") threw exception TypeError: Not enough arguments.
+PASS document.implementation.createDocumentType() threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 0 present..
+PASS document.implementation.createDocumentType("qualifiedName") threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 1 present..
+PASS document.implementation.createDocumentType("qualifiedName", "publicId") threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
PASS docType = document.implementation.createDocumentType("qualifiedName", "publicId", "systemId") did not throw exception.
PASS docType.__proto__ is DocumentType.prototype
PASS docType.name is "qualifiedName"
@@ -15,8 +15,8 @@ PASS docType.publicId is "publicId"
PASS docType.systemId is "systemId"
XMLDocument createDocument(DOMString? namespace, [TreatNullAs=EmptyString] DOMString qualifiedName, DocumentType? doctype);
-PASS document.implementation.createDocument() threw exception TypeError: Not enough arguments.
-PASS document.implementation.createDocument("namespace") threw exception TypeError: Not enough arguments.
+PASS document.implementation.createDocument() threw exception TypeError: Failed to execute 'createDocument' on 'DOMImplementation': 2 arguments required, but only 0 present..
+PASS document.implementation.createDocument("namespace") threw exception TypeError: Failed to execute 'createDocument' on 'DOMImplementation': 2 arguments required, but only 1 present..
PASS document.implementation.createDocument("namespace", "qualifiedName") did not throw exception.
PASS doc = document.implementation.createDocument("namespace", "qualifiedName", null) did not throw exception.
PASS testDocument.__proto__ is window["XMLDocument"].prototype
« no previous file with comments | « LayoutTests/fast/dom/implementation-api-args.html ('k') | LayoutTests/fast/dom/navigator-detached-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698