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

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

Issue 23717043: Implement Custom Elements 'extends' option. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/custom/document-register-basic-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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."')
« no previous file with comments | « no previous file | LayoutTests/fast/dom/custom/document-register-basic-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698