diff --git a/test/unit/polymer.element.html b/test/unit/polymer.element.html index b81d21e090..cfe9d04055 100644 --- a/test/unit/polymer.element.html +++ b/test/unit/polymer.element.html @@ -266,6 +266,26 @@

Sub template

} customElements.define('sub-new-template', SubNewTemplate); + +/** + * Instead of overriding the static getter, this element has its template + * assigned directly to the constructor. + */ +class SubNewTemplateAssigned extends window.MyElement { + static get properties() { + return { + prop2: { + value: 'prop2', + } + }; + } +} + +SubNewTemplateAssigned.template = html` +

Sub template

+
{{prop2}}
`; + +customElements.define('sub-new-template-assigned', SubNewTemplateAssigned);