Merge pull request #9411 from fredj/raster_state_test
Fix tile state condition in raster layer test
This commit is contained in:
@@ -402,7 +402,7 @@ where('Uint8ClampedArray').describe('ol.source.Raster', function() {
|
|||||||
map2.once('moveend', function() {
|
map2.once('moveend', function() {
|
||||||
expect(tileCache.getCount()).to.equal(1);
|
expect(tileCache.getCount()).to.equal(1);
|
||||||
const state = tileCache.peekLast().getState();
|
const state = tileCache.peekLast().getState();
|
||||||
expect(state === TileState.LOADED || state === TileState.LOADED).to.be(true);
|
expect(state === TileState.LOADING || state === TileState.LOADED).to.be(true);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user