Skip to content

Commit

Permalink
Add test to verify that importHref can be called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvdLippe committed Aug 9, 2017
1 parent bbf0e7c commit 6ce904b
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 6ce904b

Please sign in to comment.