Index: LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt |
diff --git a/LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt b/LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt |
index a398870385e21583baaf45260bd75855bb9f62b3..f0d062a5b701bbf8aa61ef877fdc40580fe82beb 100644 |
--- a/LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt |
+++ b/LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt |
@@ -3,28 +3,27 @@ createDocument tests modeled after mozilla's testing |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
-PASS document.implementation.createDocumentType('foo').toString() is "[object DocumentType]" |
-PASS document.implementation.createDocumentType('foo', null).toString() is "[object DocumentType]" |
-PASS createDocumentType(, ); threw INVALID_CHARACTER_ERR |
-PASS createDocumentType(null, ); threw INVALID_CHARACTER_ERR |
-PASS createDocumentType(, null); threw INVALID_CHARACTER_ERR |
-PASS createDocumentType(, , null); threw INVALID_CHARACTER_ERR |
-PASS createDocumentType(null, null); threw INVALID_CHARACTER_ERR |
-PASS createDocumentType(null, null, null); threw INVALID_CHARACTER_ERR |
-PASS createDocumentType(null, ""); threw INVALID_CHARACTER_ERR |
-PASS createDocumentType("", null); threw INVALID_CHARACTER_ERR |
-PASS createDocumentType("", ""); threw INVALID_CHARACTER_ERR |
-PASS createDocumentType("a:", null, null); threw NAMESPACE_ERR |
-PASS createDocumentType(":foo", null, null); threw NAMESPACE_ERR |
-PASS createDocumentType(":", null, null); threw NAMESPACE_ERR |
-PASS createDocumentType("foo", null, null) |
-PASS createDocumentType("foo:bar", null, null) |
-PASS createDocumentType("foo::bar", null, null); threw NAMESPACE_ERR |
-PASS createDocumentType(" :bar", null, null); threw INVALID_CHARACTER_ERR |
-PASS createDocumentType("foo: ", null, null); threw INVALID_CHARACTER_ERR |
-PASS createDocumentType("foo :bar", null, null); threw INVALID_CHARACTER_ERR |
-PASS createDocumentType("foo: bar", null, null); threw INVALID_CHARACTER_ERR |
-PASS createDocumentType("a:b:c", null, null); valid XML name, invalid QName; threw NAMESPACE_ERR |
+PASS document.implementation.createDocumentType('foo') threw exception TypeError: Not enough arguments. |
+PASS document.implementation.createDocumentType('foo', null) threw exception TypeError: Not enough arguments. |
+PASS document.implementation.createDocumentType(undefined, undefined) threw exception TypeError: Not enough arguments. |
+PASS document.implementation.createDocumentType(null, undefined) threw exception TypeError: Not enough arguments. |
+PASS document.implementation.createDocumentType(undefined, null) threw exception TypeError: Not enough arguments. |
+PASS document.implementation.createDocumentType(undefined, undefined, null) did not throw exception. |
+PASS document.implementation.createDocumentType(null, null) threw exception TypeError: Not enough arguments. |
+PASS document.implementation.createDocumentType(null, '') threw exception TypeError: Not enough arguments. |
+PASS document.implementation.createDocumentType('', null) threw exception TypeError: Not enough arguments. |
+PASS document.implementation.createDocumentType('', '') threw exception TypeError: Not enough arguments. |
+PASS document.implementation.createDocumentType('a:', null, null) threw exception NamespaceError: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces.. |
+PASS document.implementation.createDocumentType(':foo', null, null) threw exception NamespaceError: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces.. |
+PASS document.implementation.createDocumentType(':', null, null) threw exception NamespaceError: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces.. |
+PASS document.implementation.createDocumentType('foo', null, null) did not throw exception. |
+PASS document.implementation.createDocumentType('foo:bar', null, null) did not throw exception. |
+PASS document.implementation.createDocumentType('foo::bar', null, null) threw exception NamespaceError: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces.. |
+PASS document.implementation.createDocumentType(' :bar', null, null) threw exception InvalidCharacterError: The string contains invalid characters.. |
+PASS document.implementation.createDocumentType('foo: ', null, null) threw exception InvalidCharacterError: The string contains invalid characters.. |
+PASS document.implementation.createDocumentType('foo :bar', null, null) threw exception InvalidCharacterError: The string contains invalid characters.. |
+PASS document.implementation.createDocumentType('foo: bar', null, null) threw exception InvalidCharacterError: The string contains invalid characters.. |
+PASS document.implementation.createDocumentType('a:b:c', null, null) threw exception NamespaceError: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces.. |
PASS successfullyParsed is true |
TEST COMPLETE |