| OLD | NEW |
| 1 createDocument tests modeled after mozilla's testing | 1 createDocument tests modeled after mozilla's testing |
| 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 PASS document.implementation.createDocumentType('foo').toString() is "[object Do
cumentType]" | 6 PASS document.implementation.createDocumentType('foo') threw exception TypeError
: Not enough arguments. |
| 7 PASS document.implementation.createDocumentType('foo', null).toString() is "[obj
ect DocumentType]" | 7 PASS document.implementation.createDocumentType('foo', null) threw exception Typ
eError: Not enough arguments. |
| 8 PASS createDocumentType(, ); threw INVALID_CHARACTER_ERR | 8 PASS document.implementation.createDocumentType(undefined, undefined) threw exce
ption TypeError: Not enough arguments. |
| 9 PASS createDocumentType(null, ); threw INVALID_CHARACTER_ERR | 9 PASS document.implementation.createDocumentType(null, undefined) threw exception
TypeError: Not enough arguments. |
| 10 PASS createDocumentType(, null); threw INVALID_CHARACTER_ERR | 10 PASS document.implementation.createDocumentType(undefined, null) threw exception
TypeError: Not enough arguments. |
| 11 PASS createDocumentType(, , null); threw INVALID_CHARACTER_ERR | 11 PASS document.implementation.createDocumentType(undefined, undefined, null) did
not throw exception. |
| 12 PASS createDocumentType(null, null); threw INVALID_CHARACTER_ERR | 12 PASS document.implementation.createDocumentType(null, null) threw exception Type
Error: Not enough arguments. |
| 13 PASS createDocumentType(null, null, null); threw INVALID_CHARACTER_ERR | 13 PASS document.implementation.createDocumentType(null, '') threw exception TypeEr
ror: Not enough arguments. |
| 14 PASS createDocumentType(null, ""); threw INVALID_CHARACTER_ERR | 14 PASS document.implementation.createDocumentType('', null) threw exception TypeEr
ror: Not enough arguments. |
| 15 PASS createDocumentType("", null); threw INVALID_CHARACTER_ERR | 15 PASS document.implementation.createDocumentType('', '') threw exception TypeErro
r: Not enough arguments. |
| 16 PASS createDocumentType("", ""); threw INVALID_CHARACTER_ERR | 16 PASS document.implementation.createDocumentType('a:', null, null) threw exceptio
n NamespaceError: An attempt was made to create or change an object in a way whi
ch is incorrect with regard to namespaces.. |
| 17 PASS createDocumentType("a:", null, null); threw NAMESPACE_ERR | 17 PASS document.implementation.createDocumentType(':foo', null, null) threw except
ion NamespaceError: An attempt was made to create or change an object in a way w
hich is incorrect with regard to namespaces.. |
| 18 PASS createDocumentType(":foo", null, null); threw NAMESPACE_ERR | 18 PASS document.implementation.createDocumentType(':', null, null) threw exception
NamespaceError: An attempt was made to create or change an object in a way whic
h is incorrect with regard to namespaces.. |
| 19 PASS createDocumentType(":", null, null); threw NAMESPACE_ERR | 19 PASS document.implementation.createDocumentType('foo', null, null) did not throw
exception. |
| 20 PASS createDocumentType("foo", null, null) | 20 PASS document.implementation.createDocumentType('foo:bar', null, null) did not t
hrow exception. |
| 21 PASS createDocumentType("foo:bar", null, null) | 21 PASS document.implementation.createDocumentType('foo::bar', null, null) threw ex
ception NamespaceError: An attempt was made to create or change an object in a w
ay which is incorrect with regard to namespaces.. |
| 22 PASS createDocumentType("foo::bar", null, null); threw NAMESPACE_ERR | 22 PASS document.implementation.createDocumentType('» :bar', null, null) threw
exception InvalidCharacterError: The string contains invalid characters.. |
| 23 PASS createDocumentType("» :bar", null, null); threw INVALID_CHARACTER_ERR | 23 PASS document.implementation.createDocumentType('foo:» ', null, null) threw exc
eption InvalidCharacterError: The string contains invalid characters.. |
| 24 PASS createDocumentType("foo:» ", null, null); threw INVALID_CHARACTER_ERR | 24 PASS document.implementation.createDocumentType('foo :bar', null, null) threw ex
ception InvalidCharacterError: The string contains invalid characters.. |
| 25 PASS createDocumentType("foo :bar", null, null); threw INVALID_CHARACTER_ERR | 25 PASS document.implementation.createDocumentType('foo: bar', null, null) threw ex
ception InvalidCharacterError: The string contains invalid characters.. |
| 26 PASS createDocumentType("foo: bar", null, null); threw INVALID_CHARACTER_ERR | 26 PASS document.implementation.createDocumentType('a:b:c', null, null) threw excep
tion NamespaceError: An attempt was made to create or change an object in a way
which is incorrect with regard to namespaces.. |
| 27 PASS createDocumentType("a:b:c", null, null); valid XML name, invalid QName; thr
ew NAMESPACE_ERR | |
| 28 PASS successfullyParsed is true | 27 PASS successfullyParsed is true |
| 29 | 28 |
| 30 TEST COMPLETE | 29 TEST COMPLETE |
| 31 | 30 |
| OLD | NEW |