Correctly create image icons in the tests

This commit is contained in:
Tim Schaub
2017-08-20 11:02:49 -04:00
parent cab34cb220
commit d23f000846

View File

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