From 6ce904b36193bbc9e4f6bc739e263676b9987eb3 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Wed, 9 Aug 2017 14:27:23 -0700 Subject: [PATCH] Add test to verify that importHref can be called twice --- test/unit/importHref.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/unit/importHref.html b/test/unit/importHref.html index fc28a0bfb6..63e7a5124a 100644 --- a/test/unit/importHref.html +++ b/test/unit/importHref.html @@ -49,7 +49,15 @@ assert.ok(parsedEl.$.sub.$.test, 'sub element not upgraded when import loaded'); done(); }); - }) + }); + + test('load is triggered on second call', function(done) { + Polymer.Base.importHref('sub/x-test.html', function() { + Polymer.Base.importHref('sub/x-test.html', function() { + done(); + }); + }); + }); });