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

Unified Diff: LayoutTests/fast/dom/custom/element-type.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/element-type.html
diff --git a/LayoutTests/fast/dom/custom/element-type.html b/LayoutTests/fast/dom/custom/element-type.html
index bb3406bd03dd212b643a77c080b4a57e4c02726b..9152e9c2837641d4b10c2dddf2bb6e7c341695cf 100644
--- a/LayoutTests/fast/dom/custom/element-type.html
+++ b/LayoutTests/fast/dom/custom/element-type.html
@@ -25,11 +25,11 @@ function onCreate(msg) {
var protoX = Object.create(HTMLSpanElement.prototype);
protoX.createdCallback = onCreate('X');
-var X = document.register('x-x', {prototype: protoX});
+var X = document.register('x-x', {extends: 'span', prototype: protoX});
var protoY = Object.create(HTMLSpanElement.prototype);
protoY.createdCallback = onCreate('Y');
-var Y = document.register('x-y', {prototype: protoY});
+var Y = document.register('x-y', {extends: 'span', prototype: protoY});
var a = document.querySelector('#a');
shouldBe('a.getAttribute("is")', '"x-y"');
« no previous file with comments | « LayoutTests/fast/dom/custom/document-register-type-extensions.html ('k') | LayoutTests/fast/dom/custom/element-upgrade.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698