OLD | NEW |
(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 |
| 7 DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOM
String systemId); |
| 8 PASS document.implementation.createDocumentType() threw exception TypeError: Not
enough arguments. |
| 9 PASS document.implementation.createDocumentType("qualifiedName") threw exception
TypeError: Not enough arguments. |
| 10 PASS document.implementation.createDocumentType("qualifiedName", "publicId") thr
ew exception TypeError: Not enough arguments. |
| 11 PASS docType = document.implementation.createDocumentType("qualifiedName", "publ
icId", "systemId") did not throw exception. |
| 12 PASS docType.__proto__ is DocumentType.prototype |
| 13 PASS docType.name is "qualifiedName" |
| 14 PASS docType.publicId is "publicId" |
| 15 PASS docType.systemId is "systemId" |
| 16 |
| 17 XMLDocument createDocument(DOMString? namespace, [TreatNullAs=EmptyString] DOMSt
ring qualifiedName, DocumentType? doctype); |
| 18 PASS document.implementation.createDocument() threw exception TypeError: Not eno
ugh arguments. |
| 19 PASS document.implementation.createDocument("namespace") threw exception TypeErr
or: Not enough arguments. |
| 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. |
| 22 PASS testDocument.__proto__ is window["XMLDocument"].prototype |
| 23 PASS testDocument.documentElement.tagName is "qualifiedName" |
| 24 PASS testDocument.documentElement.namespaceURI is "namespace" |
| 25 PASS testDocument.doctype is null |
| 26 PASS doc = document.implementation.createDocument(null, "qualifiedName", null) d
id not throw exception. |
| 27 PASS testDocument.__proto__ is window["XMLDocument"].prototype |
| 28 PASS testDocument.documentElement.tagName is "qualifiedName" |
| 29 PASS testDocument.documentElement.namespaceURI is null |
| 30 PASS testDocument.doctype is null |
| 31 PASS doc = document.implementation.createDocument("", null, null) did not throw
exception. |
| 32 PASS testDocument.__proto__ is window["XMLDocument"].prototype |
| 33 PASS testDocument.documentElement is null |
| 34 PASS testDocument.doctype is null |
| 35 PASS doc = document.implementation.createDocument("", "", null) did not throw ex
ception. |
| 36 PASS testDocument.__proto__ is window["XMLDocument"].prototype |
| 37 PASS testDocument.documentElement is null |
| 38 PASS testDocument.doctype is null |
| 39 PASS doc = document.implementation.createDocument("namespace", "qualifiedName")
did not throw exception. |
| 40 PASS testDocument.__proto__ is window["XMLDocument"].prototype |
| 41 PASS testDocument.documentElement.tagName is "qualifiedName" |
| 42 PASS testDocument.documentElement.namespaceURI is "namespace" |
| 43 PASS testDocument.doctype is null |
| 44 PASS doc = document.implementation.createDocument("namespace", "qualifiedName",
docType) did not throw exception. |
| 45 PASS testDocument.__proto__ is window["XMLDocument"].prototype |
| 46 PASS testDocument.documentElement.tagName is "qualifiedName" |
| 47 PASS testDocument.documentElement.namespaceURI is "namespace" |
| 48 PASS testDocument.doctype is testDocType |
| 49 |
| 50 Document createHTMLDocument(optional DOMString title); |
| 51 PASS doc = document.implementation.createHTMLDocument() did not throw exception. |
| 52 PASS testDocument.__proto__ is window["HTMLDocument"].prototype |
| 53 PASS testDocument.documentElement.tagName is "HTML" |
| 54 PASS testDocument.documentElement.namespaceURI is "http://www.w3.org/1999/xhtml" |
| 55 PASS testDocument.doctype is testDocType |
| 56 PASS doc = document.implementation.createHTMLDocument("title") did not throw exc
eption. |
| 57 PASS testDocument.__proto__ is window["HTMLDocument"].prototype |
| 58 PASS testDocument.documentElement.tagName is "HTML" |
| 59 PASS testDocument.documentElement.namespaceURI is "http://www.w3.org/1999/xhtml" |
| 60 PASS testDocument.doctype is testDocType |
| 61 PASS successfullyParsed is true |
| 62 |
| 63 TEST COMPLETE |
| 64 |
OLD | NEW |