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

Unified Diff: LayoutTests/fast/dom/custom/document-register-type-extensions.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
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 827d792878ffd62864716c7a2016a725e12dfa26..017c9afb3af96c98a02f64cbfbc91a849911b537 100644
--- a/LayoutTests/fast/dom/custom/document-register-type-extensions.html
+++ b/LayoutTests/fast/dom/custom/document-register-type-extensions.html
@@ -26,9 +26,9 @@ if (window.testRunner)
//
fooConstructor = document.register('x-foo', { prototype: Object.create(HTMLElement.prototype) });
-barConstructor = document.register('x-bar', { prototype: Object.create(HTMLInputElement.prototype) });
+barConstructor = document.register('x-bar', { extends: 'input', prototype: Object.create(HTMLInputElement.prototype) });
bazConstructor = document.register('x-baz', { prototype: Object.create(fooConstructor.prototype) });
-quxConstructor = document.register('x-qux', { prototype: Object.create(barConstructor.prototype) });
+quxConstructor = document.register('x-qux', { extends: 'input', prototype: Object.create(barConstructor.prototype) });
// Same name, different local name
shouldThrow('document.register("x-foo", { prototype: Object.create(HTMLDivElement.prototype) })', '"InvalidStateError: Failed to call \'register\' on \'Document\' for type \'x-foo\': a type with that name is already registered."');

Powered by Google App Engine
This is Rietveld 408576698