From d23f000846cf128f3cbb6339258b0a62ab8044eb Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sun, 20 Aug 2017 11:02:49 -0400 Subject: [PATCH] Correctly create image icons in the tests --- test/spec/ol/style/iconimagecache.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);