diff --git a/test/unit/polymer.element.html b/test/unit/polymer.element.html
index e6273517e1..02afd0d6be 100644
--- a/test/unit/polymer.element.html
+++ b/test/unit/polymer.element.html
@@ -288,6 +288,33 @@
Sub template
});
+
+
+
+
@@ -545,6 +572,31 @@ Sub template
})
});
+ suite('extend sub-class template', function() {
+ var el, baseEl;
+ setup(function() {
+ el = document.createElement('sub-extended-template');
+ document.body.appendChild(el);
+ baseEl = document.createElement('element-with-bind-listeners');
+ document.body.appendChild(baseEl);
+ });
+ teardown(function() {
+ document.body.removeChild(el);
+ document.body.removeChild(baseEl);
+ });
+ test('has original template', function() {
+ assert.equal(el.prop, 'base');
+ assert.equal(el.$.content.textContent, el.prop);
+ });
+ test('has new element', function() {
+ assert.ok(el.$.subContent);
+ assert.equal(el.$.subContent.getAttribute('imaginary-prop'), 'base');
+ });
+ test('base doesnt have new element', function() {
+ assert.notOk(baseEl.$.subContent);
+ });
+ });
+