From ec36165ec900fcf6fe93f1207e7eb24e2c54d7df Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Tue, 17 Apr 2018 16:21:06 -0700 Subject: [PATCH] define omitted class declaration --- test/unit/property-effects-elements.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/unit/property-effects-elements.js b/test/unit/property-effects-elements.js index c520e9bbab..c8660a2085 100644 --- a/test/unit/property-effects-elements.js +++ b/test/unit/property-effects-elements.js @@ -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`