Fix MarkerSpec in retina browsers.

This commit is contained in:
Tom MacWright 2014-03-19 11:58:19 -07:00 committed by Vladimir Agafonkin
parent dc573b768a
commit 74133f49f0

View File

@ -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);
}); });