mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-08-16 16:45:22 +00:00
Added unit test for #5202
This commit is contained in:
@ -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();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user