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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Checks that the DOMImplementation api arguments are correctly validated 1 Checks that the DOMImplementation api arguments are correctly validated
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 6
7 DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOM String systemId); 7 DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOM String systemId);
8 PASS document.implementation.createDocumentType() threw exception TypeError: Not enough arguments. 8 PASS document.implementation.createDocumentType() threw exception TypeError: Fai led to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required , but only 0 present..
9 PASS document.implementation.createDocumentType("qualifiedName") threw exception TypeError: Not enough arguments. 9 PASS document.implementation.createDocumentType("qualifiedName") threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arg uments required, but only 1 present..
10 PASS document.implementation.createDocumentType("qualifiedName", "publicId") thr ew exception TypeError: Not enough arguments. 10 PASS document.implementation.createDocumentType("qualifiedName", "publicId") thr ew exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementa tion': 3 arguments required, but only 2 present..
11 PASS docType = document.implementation.createDocumentType("qualifiedName", "publ icId", "systemId") did not throw exception. 11 PASS docType = document.implementation.createDocumentType("qualifiedName", "publ icId", "systemId") did not throw exception.
12 PASS docType.__proto__ is DocumentType.prototype 12 PASS docType.__proto__ is DocumentType.prototype
13 PASS docType.name is "qualifiedName" 13 PASS docType.name is "qualifiedName"
14 PASS docType.publicId is "publicId" 14 PASS docType.publicId is "publicId"
15 PASS docType.systemId is "systemId" 15 PASS docType.systemId is "systemId"
16 16
17 XMLDocument createDocument(DOMString? namespace, [TreatNullAs=EmptyString] DOMSt ring qualifiedName, DocumentType? doctype); 17 XMLDocument createDocument(DOMString? namespace, [TreatNullAs=EmptyString] DOMSt ring qualifiedName, DocumentType? doctype);
18 PASS document.implementation.createDocument() threw exception TypeError: Not eno ugh arguments. 18 PASS document.implementation.createDocument() threw exception TypeError: Failed to execute 'createDocument' on 'DOMImplementation': 2 arguments required, but on ly 0 present..
19 PASS document.implementation.createDocument("namespace") threw exception TypeErr or: Not enough arguments. 19 PASS document.implementation.createDocument("namespace") threw exception TypeErr or: Failed to execute 'createDocument' on 'DOMImplementation': 2 arguments requi red, but only 1 present..
20 PASS document.implementation.createDocument("namespace", "qualifiedName") did no t throw exception. 20 PASS document.implementation.createDocument("namespace", "qualifiedName") did no t throw exception.
21 PASS doc = document.implementation.createDocument("namespace", "qualifiedName", null) did not throw exception. 21 PASS doc = document.implementation.createDocument("namespace", "qualifiedName", null) did not throw exception.
22 PASS testDocument.__proto__ is window["XMLDocument"].prototype 22 PASS testDocument.__proto__ is window["XMLDocument"].prototype
23 PASS testDocument.documentElement.tagName is "qualifiedName" 23 PASS testDocument.documentElement.tagName is "qualifiedName"
24 PASS testDocument.documentElement.namespaceURI is "namespace" 24 PASS testDocument.documentElement.namespaceURI is "namespace"
25 PASS testDocument.doctype is null 25 PASS testDocument.doctype is null
26 PASS doc = document.implementation.createDocument(null, "qualifiedName", null) d id not throw exception. 26 PASS doc = document.implementation.createDocument(null, "qualifiedName", null) d id not throw exception.
27 PASS testDocument.__proto__ is window["XMLDocument"].prototype 27 PASS testDocument.__proto__ is window["XMLDocument"].prototype
28 PASS testDocument.documentElement.tagName is "qualifiedName" 28 PASS testDocument.documentElement.tagName is "qualifiedName"
29 PASS testDocument.documentElement.namespaceURI is null 29 PASS testDocument.documentElement.namespaceURI is null
(...skipping 25 matching lines...) Expand all
55 PASS testDocument.doctype is testDocType 55 PASS testDocument.doctype is testDocType
56 PASS doc = document.implementation.createHTMLDocument("title") did not throw exc eption. 56 PASS doc = document.implementation.createHTMLDocument("title") did not throw exc eption.
57 PASS testDocument.__proto__ is window["HTMLDocument"].prototype 57 PASS testDocument.__proto__ is window["HTMLDocument"].prototype
58 PASS testDocument.documentElement.tagName is "HTML" 58 PASS testDocument.documentElement.tagName is "HTML"
59 PASS testDocument.documentElement.namespaceURI is "http://www.w3.org/1999/xhtml" 59 PASS testDocument.documentElement.namespaceURI is "http://www.w3.org/1999/xhtml"
60 PASS testDocument.doctype is testDocType 60 PASS testDocument.doctype is testDocType
61 PASS successfullyParsed is true 61 PASS successfullyParsed is true
62 62
63 TEST COMPLETE 63 TEST COMPLETE
64 64
OLDNEW
« 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