Fix MarkerSpec in retina browsers.
This commit is contained in:
parent
dc573b768a
commit
74133f49f0
@ -58,7 +58,11 @@ describe("Marker", function () {
|
|||||||
expect(oldIcon).to.not.be(marker._icon);
|
expect(oldIcon).to.not.be(marker._icon);
|
||||||
expect(oldIcon.parentNode).to.be(null);
|
expect(oldIcon.parentNode).to.be(null);
|
||||||
|
|
||||||
expect(marker._icon.src).to.contain('marker-icon.png');
|
if (L.Browser.retina) {
|
||||||
|
expect(marker._icon.src).to.contain('marker-icon-2x.png');
|
||||||
|
} else {
|
||||||
|
expect(marker._icon.src).to.contain('marker-icon.png');
|
||||||
|
}
|
||||||
expect(marker._icon.parentNode).to.be(map._panes.markerPane);
|
expect(marker._icon.parentNode).to.be(map._panes.markerPane);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user