Named exports from ol/events

This commit is contained in:
Tim Schaub
2018-01-24 10:09:57 -07:00
parent 1786bbbe80
commit 7e7631c42a
74 changed files with 437 additions and 445 deletions

View File

@@ -1,7 +1,7 @@
import ImageTile from '../../../../src/ol/ImageTile.js';
import TileState from '../../../../src/ol/TileState.js';
import {createFromTemplate} from '../../../../src/ol/tileurlfunction.js';
import _ol_events_ from '../../../../src/ol/events.js';
import {listen} from '../../../../src/ol/events.js';
import {addCommon, clearAllProjections, get as getProjection} from '../../../../src/ol/proj.js';
import {register} from '../../../../src/ol/proj/proj4.js';
import _ol_proj_EPSG3857_ from '../../../../src/ol/proj/EPSG3857.js';
@@ -148,7 +148,7 @@ describe('ol.source.TileImage', function() {
const tile = source.getTile(0, 0, -1, 1, getProjection('EPSG:3857'));
expect(tile).to.be.a(ReprojTile);
_ol_events_.listen(tile, 'change', function() {
listen(tile, 'change', function() {
if (tile.getState() == 2) { // LOADED
done();
}
@@ -167,7 +167,7 @@ describe('ol.source.TileImage', function() {
const tile = source.getTile(0, 0, -1, 1, proj);
expect(tile).to.be.a(ReprojTile);
_ol_events_.listen(tile, 'change', function() {
listen(tile, 'change', function() {
if (tile.getState() == 2) { // LOADED
done();
}