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 6c86ecef89c5347a61217457d08cbb1f80d43cda..ca72d179ab653626af07fe83dc9848d15ae45313 100644 |
--- a/LayoutTests/fast/dom/custom/document-register-basic.html |
+++ b/LayoutTests/fast/dom/custom/document-register-basic.html |
@@ -32,10 +32,6 @@ 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."'); |
-// Bad prototype: missing __proto__ |
-shouldThrow('document.register("x-bad-d", { prototype: {} })', '"InvalidStateError: Failed to call \'register\' on \'Document\' for type \'x-bad-d\': the prototype does not extend an HTML or SVG element."'); |
-// Bad prototype: wrong __proto__ |
-shouldThrow('document.register("x-bad-e", { prototype: Object.create(Document.prototype) })', '"InvalidStateError: Failed to call \'register\' on \'Document\' for type \'x-bad-e\': the prototype does not extend an HTML or SVG element."'); |
// Call as function |
shouldThrow('fooConstructor()', '"TypeError: DOM object constructor cannot be called as a function."') |