Use interim tiles when changing dynamic parameters
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user