From 527afba2d6643a54ece49c490cbf91bfd474e790 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Wed, 7 Feb 2018 17:05:41 -0800 Subject: [PATCH] Add test. --- test/unit/templatizer-elements.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/templatizer-elements.html b/test/unit/templatizer-elements.html index da4fce0d61..d0c384bad0 100644 --- a/test/unit/templatizer-elements.html +++ b/test/unit/templatizer-elements.html @@ -129,6 +129,8 @@ }); var parent = Polymer.dom(this).parentNode; Polymer.dom(parent).appendChild(this.instance.root); + // Ensure templatizer class does not leak reference to dataHost + assert.notOk(this.ctor.prototype._template.dataHost, 'templatizer class should not leak reference to dataHost'); } }); @@ -196,6 +198,8 @@ }); var parent = Polymer.dom(this).parentNode; Polymer.dom(parent).appendChild(this.instance.root); + // Ensure templatizer class does not leak reference to dataHost + assert.notOk(this.ctor.prototype._template.dataHost, 'templatizer class should not leak reference to dataHost'); } });