Added unit test for #5202

This commit is contained in:
Iván Sánchez Ortega 2016-12-21 14:49:47 +01:00
parent 4e58391235
commit b8b7281ee8

View File

@ -391,4 +391,15 @@ describe('L.Layer#_popup', function () {
expect(marker.isPopupOpen()).to.be(false);
});
it('does not throw is popup is inmediately closed', function (done) {
map.on('popupopen', function (ev) {
marker.closePopup();
});
expect(function () {
marker.bindPopup("new layer").openPopup();
done();
}).to.not.throwException();
});
});