Merge pull request #9411 from fredj/raster_state_test

Fix tile state condition in raster layer test
This commit is contained in:
Frédéric Junod
2019-04-09 08:27:43 +02:00
committed by GitHub

View File

@@ -402,7 +402,7 @@ where('Uint8ClampedArray').describe('ol.source.Raster', function() {
map2.once('moveend', function() {
expect(tileCache.getCount()).to.equal(1);
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();
});