| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |