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

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

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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/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 0555fc7aadc9a008ef27abe700710350b06ac050..806f11b6b56b699da011f0915161af03656fd284 100644
--- a/LayoutTests/fast/dom/custom/document-register-type-extensions.html
+++ b/LayoutTests/fast/dom/custom/document-register-type-extensions.html
@@ -31,7 +31,7 @@ bazConstructor = document.register('x-baz', { prototype: Object.create(fooConstr
quxConstructor = document.register('x-qux', { prototype: Object.create(barConstructor.prototype) });
// Same name, different local name
-shouldThrow("document.register('x-foo', { prototype: Object.create(HTMLDivElement.prototype) })", "'Error: InvalidStateError: DOM Exception 11'");
+shouldThrow("document.register('x-foo', { prototype: Object.create(HTMLDivElement.prototype) })", "'InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.'");
//
// Generated constructors
@@ -123,7 +123,7 @@ fooCreatedEmpty = document.createElement("x-foo", "");
shouldBe("fooCreatedEmpty.outerHTML", fooOuterHTML);
shouldBeTrue("fooCreatedEmpty instanceof fooConstructor");
-shouldThrow("document.createElement('@invalid', 'x-bar')", "'Error: InvalidCharacterError: DOM Exception 5'");
+shouldThrow("document.createElement('@invalid', 'x-bar')", "'InvalidCharacterError: An invalid or illegal character was specified, such as in an XML name.'");
//
// createElementNS() with type extensions
@@ -138,7 +138,7 @@ shouldBe("barCreatedNS.outerHTML", barOuterHTML);
shouldBeTrue("barCreatedNS instanceof barConstructor");
shouldBeTrue("isFormControl(barCreatedNS)");
-shouldThrow("document.createElementNS('http://example.com/2013/no-such-namespace', 'xml:lang', 'x-bar')", "'Error: NamespaceError: DOM Exception 14'");
+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.'");
// parser
function createElementFromHTML(html) {

Powered by Google App Engine
This is Rietveld 408576698