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

Side by Side Diff: LayoutTests/fast/dom/implementation-api-args-expected.txt

Issue 22875013: Make several DOMImplementation API arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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
(Empty)
1 Checks that the DOMImplementation api arguments are correctly validated
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 boolean hasFeature(DOMString feature, [TreatNullAs=EmptyString] DOMString versio n);
7 PASS document.implementation.hasFeature() threw exception TypeError: Not enough arguments.
8 PASS document.implementation.hasFeature("test") threw exception TypeError: Not e nough arguments.
9 PASS document.implementation.hasFeature("test", null) is true
10 PASS document.implementation.hasFeature("test", "") is true
11 PASS document.implementation.hasFeature("test", undefined) is true
12 PASS document.implementation.hasFeature(null, null) is true
13 PASS document.implementation.hasFeature(undefined, null) is true
14 PASS document.implementation.hasFeature("", "") is true
15
16 DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOM String systemId);
17 PASS document.implementation.createDocumentType() threw exception TypeError: Not enough arguments.
18 PASS document.implementation.createDocumentType("qualifiedName") threw exception TypeError: Not enough arguments.
19 PASS document.implementation.createDocumentType("qualifiedName", "publicId") thr ew exception TypeError: Not enough arguments.
20 PASS docType = document.implementation.createDocumentType("qualifiedName", "publ icId", "systemId") did not throw exception.
21 PASS docType.__proto__ is DocumentType.prototype
22 PASS docType.name is "qualifiedName"
23 PASS docType.publicId is "publicId"
24 PASS docType.systemId is "systemId"
25
26 XMLDocument createDocument(DOMString? namespace, [TreatNullAs=EmptyString] DOMSt ring qualifiedName, DocumentType? doctype);
27 PASS document.implementation.createDocument() threw exception TypeError: Not eno ugh arguments.
28 PASS document.implementation.createDocument("namespace") threw exception TypeErr or: Not enough arguments.
29 PASS document.implementation.createDocument("namespace", "qualifiedName") threw exception TypeError: Not enough arguments.
30 PASS doc = document.implementation.createDocument("namespace", "qualifiedName", null) did not throw exception.
31 PASS testDocument.__proto__ is window["XMLDocument"].prototype
32 PASS testDocument.documentElement.tagName is "qualifiedName"
33 PASS testDocument.documentElement.namespaceURI is "namespace"
34 PASS testDocument.doctype is null
35 PASS doc = document.implementation.createDocument(null, "qualifiedName", null) d id not throw exception.
36 PASS testDocument.__proto__ is window["XMLDocument"].prototype
37 PASS testDocument.documentElement.tagName is "qualifiedName"
38 PASS testDocument.documentElement.namespaceURI is null
39 PASS testDocument.doctype is null
40 PASS doc = document.implementation.createDocument("", null, null) did not throw exception.
41 PASS testDocument.__proto__ is window["XMLDocument"].prototype
42 PASS testDocument.documentElement is null
43 PASS testDocument.doctype is null
44 PASS doc = document.implementation.createDocument("", "", null) did not throw ex ception.
45 PASS testDocument.__proto__ is window["XMLDocument"].prototype
46 PASS testDocument.documentElement is null
47 PASS testDocument.doctype is null
48 PASS doc = document.implementation.createDocument("namespace", "qualifiedName", docType) did not throw exception.
49 PASS testDocument.__proto__ is window["XMLDocument"].prototype
50 PASS testDocument.documentElement.tagName is "qualifiedName"
51 PASS testDocument.documentElement.namespaceURI is "namespace"
52 PASS testDocument.doctype is testDocType
53
54 Document createHTMLDocument(optional DOMString title);
55 PASS doc = document.implementation.createHTMLDocument() did not throw exception.
56 PASS testDocument.__proto__ is window["HTMLDocument"].prototype
57 PASS testDocument.documentElement.tagName is "HTML"
58 PASS testDocument.documentElement.namespaceURI is "http://www.w3.org/1999/xhtml"
59 PASS testDocument.doctype is testDocType
60 PASS doc = document.implementation.createHTMLDocument("title") did not throw exc eption.
61 PASS testDocument.__proto__ is window["HTMLDocument"].prototype
62 PASS testDocument.documentElement.tagName is "HTML"
63 PASS testDocument.documentElement.namespaceURI is "http://www.w3.org/1999/xhtml"
64 PASS testDocument.doctype is testDocType
65 PASS successfullyParsed is true
66
67 TEST COMPLETE
68
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698