Additional uses of new source state type

This commit is contained in:
Tim Schaub
2021-09-04 16:50:09 -06:00
committed by Andreas Hocevar
parent 57f147988d
commit 04ad0e0c5a
5 changed files with 10 additions and 15 deletions

View File

@@ -1,5 +1,4 @@
import GeoTIFFSource from '../../../../../src/ol/source/GeoTIFF.js';
import State from '../../../../../src/ol/source/State.js';
import TileState from '../../../../../src/ol/TileState.js';
describe('ol/source/GeoTIFF', function () {
@@ -115,9 +114,9 @@ describe('ol/source/GeoTIFF', function () {
});
it('manages load states', function (done) {
expect(source.getState()).to.be(State.LOADING);
expect(source.getState()).to.be('loading');
source.on('change', () => {
expect(source.getState()).to.be(State.READY);
expect(source.getState()).to.be('ready');
done();
});
});