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

Unified Diff: pkg/web_components/test/interop_test.html

Issue 341003002: web_components: fix extending another custom element (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « pkg/web_components/test/interop_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/web_components/test/interop_test.html
diff --git a/pkg/web_components/test/interop_test.html b/pkg/web_components/test/interop_test.html
index 036c7ef761ed9e06755a81e54fb1551efd68d877..d49dcb9dbef35eb61fd12ba2c38002e5b4f849ae 100644
--- a/pkg/web_components/test/interop_test.html
+++ b/pkg/web_components/test/interop_test.html
@@ -32,13 +32,23 @@
D.prototype.inc = function() { this.x = counter++; };
D.prototype.createdCallback = function() { this.inc(); };
+ var E = { prototype: Object.create(D.prototype) };
+ E.prototype.inc2 = function() {
+ this.y = counter++;
+ };
+ E.prototype.createdCallback = function() {
+ D.prototype.createdCallback.call(this);
+ this.inc2();
+ };
+
document.registerElement('x-a', A);
document.registerElement('x-b', B);
document.registerElement('x-d', D);
+ document.registerElement('x-e', E);
function registerC() {
var proto = Object.create(HTMLElement.prototype, {
- inc: { value: function() { this.x = counter++; } },
+ inc: { value: function() { this.x = counter++; } },
createdCallback: {
value: function() { this.inc(); },
configurable: true},
@@ -57,6 +67,9 @@
function addD() {
document.body.appendChild(document.createElement('x-d'));
}
+ function addE() {
+ document.body.appendChild(document.createElement('x-e'));
+ }
</script>
<x-a id="i1"></x-a>
<div is="x-b" id="i2"></div>
« no previous file with comments | « pkg/web_components/test/interop_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698