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

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

Issue 98543011: Improve Document exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 31fd9e0a9adf63e83f781210a19a3d1f0d2df6c2..aed2c197474021a0660aee63aa084853debca9e7 100644
--- a/LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt
+++ b/LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt
@@ -13,17 +13,17 @@ PASS document.implementation.createDocumentType(null, null) threw exception Type
PASS document.implementation.createDocumentType(null, '') threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
PASS document.implementation.createDocumentType('', null) threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
PASS document.implementation.createDocumentType('', '') threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
-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('a:', null, null) threw exception NamespaceError: Failed to execute 'createDocumentType' on 'DOMImplementation': The specified name is empty..
+PASS document.implementation.createDocumentType(':foo', null, null) threw exception NamespaceError: Failed to execute 'createDocumentType' on 'DOMImplementation': A colon (':') may not be used to begin a name..
+PASS document.implementation.createDocumentType(':', null, null) threw exception NamespaceError: Failed to execute 'createDocumentType' on 'DOMImplementation': A colon (':') may not be used to begin a name..
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 document.implementation.createDocumentType('foo::bar', null, null) threw exception NamespaceError: Failed to execute 'createDocumentType' on 'DOMImplementation': Multiple colons (':') are not allowed..
+PASS document.implementation.createDocumentType(' :bar', null, null) threw exception InvalidCharacterError: Failed to execute 'createDocumentType' on 'DOMImplementation': The character ' ' may not be used to start a name..
+PASS document.implementation.createDocumentType('foo: ', null, null) threw exception InvalidCharacterError: Failed to execute 'createDocumentType' on 'DOMImplementation': The character ' ' may not be used to start a name..
+PASS document.implementation.createDocumentType('foo :bar', null, null) threw exception InvalidCharacterError: Failed to execute 'createDocumentType' on 'DOMImplementation': The character ' ' may not be used in a name..
+PASS document.implementation.createDocumentType('foo: bar', null, null) threw exception InvalidCharacterError: Failed to execute 'createDocumentType' on 'DOMImplementation': The character ' ' may not be used to start a name..
+PASS document.implementation.createDocumentType('a:b:c', null, null) threw exception NamespaceError: Failed to execute 'createDocumentType' on 'DOMImplementation': Multiple colons (':') are not allowed..
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698