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

Unified Diff: LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt

Issue 22875013: Make several DOMImplementation API arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix createDocument() args 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698