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

Unified Diff: LayoutTests/fast/dom/custom/document-register-type-extensions.html

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/custom/document-register-type-extensions.html
diff --git a/LayoutTests/fast/dom/custom/document-register-type-extensions.html b/LayoutTests/fast/dom/custom/document-register-type-extensions.html
index 4beec3989da12f0a8d14fdd9f2ab355f07fce8d6..e22e0d769266338f2f47ec2532e29d6114ec313f 100644
--- a/LayoutTests/fast/dom/custom/document-register-type-extensions.html
+++ b/LayoutTests/fast/dom/custom/document-register-type-extensions.html
@@ -123,7 +123,7 @@ fooCreatedEmpty = document.createElement('x-foo', '');
shouldBeEqualToString('fooCreatedEmpty.outerHTML', fooOuterHTML);
shouldBeTrue('fooCreatedEmpty instanceof fooConstructor');
-shouldThrow('document.createElement("@invalid", "x-bar")', '"InvalidCharacterError: The string contains invalid characters."');
+shouldThrow('document.createElement("@invalid", "x-bar")', '"InvalidCharacterError: Failed to execute \'createElement\' on \'Document\': \'@invalid\' is not a valid element name."');
//
// createElementNS() with type extensions
@@ -138,7 +138,7 @@ shouldBeEqualToString('barCreatedNS.outerHTML', barOuterHTML);
shouldBeTrue('barCreatedNS instanceof barConstructor');
shouldBeTrue('isFormControl(barCreatedNS)');
-shouldThrow('document.createElementNS("http://example.com/2013/no-such-namespace", "xml:lang", "x-bar")', '"NamespaceError: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces."');
+shouldThrow('document.createElementNS("http://example.com/2013/no-such-namespace", "xml:lang", "x-bar")', '"NamespaceError: Failed to execute \'createElementNS\' on \'Document\': \'http://example.com/2013/no-such-namespace\' is not a valid namespace for elements."');
// parser
function createElementFromHTML(html) {

Powered by Google App Engine
This is Rietveld 408576698