Index: LayoutTests/fast/dom/custom/document-register-basic.html |
diff --git a/LayoutTests/fast/dom/custom/document-register-basic.html b/LayoutTests/fast/dom/custom/document-register-basic.html |
index 636bbb8f26afcaffe79b26ecb54c97cd8b632010..cf680e500aa53be4e1072e1361656fa19e2c8dbd 100644 |
--- a/LayoutTests/fast/dom/custom/document-register-basic.html |
+++ b/LayoutTests/fast/dom/custom/document-register-basic.html |
@@ -24,14 +24,14 @@ shouldBe('fooConstructor.prototype.__proto__', 'HTMLElement.prototype'); |
shouldBeTrue('fooConstructor.prototype.thisIsPrototype'); |
// Bad prototype: prototype is already a built-in interface prototype object |
-shouldThrow('document.register("x-bad-a", HTMLElement)', '"NotSupportedError: Failed to call \'register\' on \'Document\' for type \'x-bad-a\': prototype is already in-use as an interface prototype object."'); |
+shouldThrow('document.register("x-bad-a", HTMLElement)', '"NotSupportedError: Failed to execute \'register\' on \'Document\': Registration failed for type \'x-bad-a\'. The prototype is already in-use as an interface prototype object."'); |
// Bad prototype: prototype is already a Custom Element interface prototype object |
-shouldThrow('document.register("x-bad-b", fooConstructor)', '"NotSupportedError: Failed to call \'register\' on \'Document\' for type \'x-bad-b\': prototype is already in-use as an interface prototype object."'); |
+shouldThrow('document.register("x-bad-b", fooConstructor)', '"NotSupportedError: Failed to execute \'register\' on \'Document\': Registration failed for type \'x-bad-b\'. The prototype is already in-use as an interface prototype object."'); |
// Bad prototype: 'constructor' is not configurable |
var proto = Object.create(HTMLElement.prototype, { |
constructor: {configurable: false, writable: true} |
}); |
-shouldThrow('document.register("x-bad-c", { prototype: proto })', '"NotSupportedError: Failed to call \'register\' on \'Document\' for type \'x-bad-c\': prototype constructor property is not configurable."'); |
+shouldThrow('document.register("x-bad-c", { prototype: proto })', '"NotSupportedError: Failed to execute \'register\' on \'Document\': Registration failed for type \'x-bad-c\'. Prototype constructor property is not configurable."'); |
// Call as function |
shouldThrow('fooConstructor()', '"TypeError: DOM object constructor cannot be called as a function."') |