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) { |