diff --git a/test/spec/ol/style/iconimagecache.test.js b/test/spec/ol/style/iconimagecache.test.js index a883f772ca..ef47345275 100644 --- a/test/spec/ol/style/iconimagecache.test.js +++ b/test/spec/ol/style/iconimagecache.test.js @@ -39,7 +39,7 @@ describe('ol.style.IconImageCache', function() { expect(cache.cacheSize_).to.eql(4); src = '4'; - iconImage = new ol.style.IconImage(src, null); + iconImage = new ol.style.IconImage(null, src); cache.set(src, null, null, iconImage); expect(cache.cacheSize_).to.eql(5); @@ -47,14 +47,14 @@ describe('ol.style.IconImageCache', function() { expect(cache.cacheSize_).to.eql(3); src = '0'; - iconImage = new ol.style.IconImage(src, null); + iconImage = new ol.style.IconImage(null, src); ol.events.listen(iconImage, 'change', ol.nullFunction, false); cache.set(src, null, null, iconImage); expect(cache.cacheSize_).to.eql(4); src = '4'; - iconImage = new ol.style.IconImage(src, null); + iconImage = new ol.style.IconImage(null, src); ol.events.listen(iconImage, 'change', ol.nullFunction, false); cache.set(src, null, null, iconImage);