Rename method and make it appear in the API docs

This commit is contained in:
Andreas Hocevar
2017-12-01 17:01:26 +01:00
parent 343a4085a0
commit 8a9f32fa09
3 changed files with 12 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ describe('ol.style.IconImageCache', function() {
});
});
describe('#setMaxCacheSize', function() {
describe('#setSize', function() {
it('sets max cache size and expires cache', function() {
var cache = ol.style.iconImageCache;
@@ -81,7 +81,7 @@ describe('ol.style.IconImageCache', function() {
expect(cache.cacheSize_).to.eql(3);
cache.setMaxCacheSize(2);
cache.setSize(2);
expect(cache.maxCacheSize_).to.eql(2);
expect(cache.cacheSize_).to.eql(2);