Added unit test for #5202
This commit is contained in:
parent
4e58391235
commit
b8b7281ee8
@ -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();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user