Skip to content

Commit

Permalink
Merge pull request #4784 from Polymer/import-href-double-call-test
Browse files Browse the repository at this point in the history
Add test to verify that importHref can be called twice
  • Loading branch information
dfreedm authored Aug 9, 2017
2 parents 66e1624 + 6ce904b commit 20e82c0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/unit/importHref.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
});

});

Expand Down

0 comments on commit 20e82c0

Please sign in to comment.