| 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>
|
|
|