fix icon url warnings in tests

This commit is contained in:
Vladimir Agafonkin 2016-09-27 17:54:46 +03:00
parent 44176d9cea
commit fd8c2599ef
2 changed files with 4 additions and 3 deletions

View File

@ -0,0 +1 @@
L.Icon.Default.imagePath = '/base/dist/images/';

View File

@ -28,7 +28,7 @@ describe("Marker", function () {
var expectedX = 96; var expectedX = 96;
var expectedY = 100; var expectedY = 100;
var sizedIcon = new L.Icon.Default({ var sizedIcon = new L.Icon.Default({
iconUrl: icon1._getIconUrl('icon') + '?3', iconUrl: icon1.options.iconUrl + '?3',
iconSize: [expectedX, expectedY] iconSize: [expectedX, expectedY]
}); });
@ -44,7 +44,7 @@ describe("Marker", function () {
it("set the correct x and y size attributes passing only one value", function () { it("set the correct x and y size attributes passing only one value", function () {
var expectedXY = 96; var expectedXY = 96;
var sizedIcon = new L.Icon.Default({ var sizedIcon = new L.Icon.Default({
iconUrl: icon1._getIconUrl('icon') + '?3', iconUrl: icon1.options.iconUrl + '?3',
iconSize: expectedXY iconSize: expectedXY
}); });
@ -60,7 +60,7 @@ describe("Marker", function () {
it("set the correct x and y size attributes passing a L.Point instance", function () { it("set the correct x and y size attributes passing a L.Point instance", function () {
var expectedXY = 96; var expectedXY = 96;
var sizedIcon = new L.Icon.Default({ var sizedIcon = new L.Icon.Default({
iconUrl: icon1._getIconUrl('icon') + '?3', iconUrl: icon1.options.iconUrl + '?3',
iconSize: L.point(expectedXY, expectedXY) iconSize: L.point(expectedXY, expectedXY)
}); });