Use interim tiles when changing dynamic parameters

This commit is contained in:
Éric Lemoine
2015-11-06 16:50:57 +01:00
parent 9cf26f1fac
commit 132861e175
10 changed files with 222 additions and 31 deletions

View File

@@ -81,6 +81,16 @@ describe('ol.structs.LRUCache', function() {
});
});
describe('replacing value of a key', function() {
it('moves the key to newest position', function() {
fillLRUCache(lruCache);
lruCache.replace('b', 4);
expect(lruCache.getCount()).to.eql(4);
expect(lruCache.getKeys()).to.eql(['b', 'd', 'c', 'a']);
expect(lruCache.getValues()).to.eql([4, 3, 2, 0]);
});
});
describe('setting a new value', function() {
it('adds it as the newest value', function() {
fillLRUCache(lruCache);