Skip to content

Commit

Permalink
define omitted class declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliott Marquez committed Apr 17, 2018
1 parent 5ce0d24 commit ec36165
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/unit/property-effects-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,28 @@ Polymer({
this.xChanged = sinon.spy();
}
});

class SuperObserverElement extends PolymerElement {
static get is() { return 'super-observer-element'; }
static get properties() {
return {
prop: {
value: 'String',
observer() {
this.__observerCalled++;
}
}
};
}
}
SuperObserverElement.prototype.__observerCalled = 0;
customElements.define(SuperObserverElement.is, SuperObserverElement);

class SubObserverElement extends SuperObserverElement {
static get is() { return 'sub-observer-element'; }
}
customElements.define(SubObserverElement.is, SubObserverElement);

class SVGElement extends PolymerElement {
static get template() {
return html`
Expand Down

0 comments on commit ec36165

Please sign in to comment.