From 06190c9db2b5038758e5ac056880764d74d2da06 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Tue, 23 May 2017 10:23:05 -0700 Subject: [PATCH] Fix impl of _contentForTemplate. Add template-stamp tests. Fixes #4597 --- lib/mixins/template-stamp.html | 2 +- test/runner.html | 1 + test/unit/template-stamp.html | 99 ++++++++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 test/unit/template-stamp.html diff --git a/lib/mixins/template-stamp.html b/lib/mixins/template-stamp.html index 643740da62..331e32fc2e 100644 --- a/lib/mixins/template-stamp.html +++ b/lib/mixins/template-stamp.html @@ -379,7 +379,7 @@ * @return {DocumentFragment} Content fragment */ static _contentForTemplate(template) { - let templateInfo = template.__templateInfo; + let templateInfo = template._templateInfo; return (templateInfo && templateInfo.content) || template.content; } diff --git a/test/runner.html b/test/runner.html index 8df2426d90..ad9d00e356 100644 --- a/test/runner.html +++ b/test/runner.html @@ -26,6 +26,7 @@ var suites = [ 'unit/globals.html', 'unit/property-accessors.html', + 'unit/template-stamp.html', 'unit/property-effects.html', 'unit/property-effects-template.html', 'unit/path-effects.html', diff --git a/test/unit/template-stamp.html b/test/unit/template-stamp.html new file mode 100644 index 0000000000..70ad52bfc2 --- /dev/null +++ b/test/unit/template-stamp.html @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + +