Use named exports from ol/index.js
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import _ol_ from '../../../../src/ol/index.js';
|
||||
import {inherits} from '../../../../src/ol/index.js';
|
||||
import _ol_Tile_ from '../../../../src/ol/Tile.js';
|
||||
import _ol_TileRange_ from '../../../../src/ol/TileRange.js';
|
||||
import _ol_proj_ from '../../../../src/ol/proj.js';
|
||||
@@ -35,7 +35,7 @@ var MockTile = function(tileStates) {
|
||||
}
|
||||
|
||||
};
|
||||
_ol_.inherits(MockTile, _ol_source_Tile_);
|
||||
inherits(MockTile, _ol_source_Tile_);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import _ol_ from '../../../../src/ol/index.js';
|
||||
import {DEFAULT_TILE_SIZE} from '../../../../src/ol/index.js';
|
||||
import _ol_events_ from '../../../../src/ol/events.js';
|
||||
import _ol_proj_Projection_ from '../../../../src/ol/proj/Projection.js';
|
||||
import _ol_source_Zoomify_ from '../../../../src/ol/source/Zoomify.js';
|
||||
@@ -162,7 +162,7 @@ describe('ol.source.Zoomify', function() {
|
||||
|
||||
it('has expected tileSize', function() {
|
||||
var sources = [getZoomifySource(), getZoomifySourceWith1024pxTiles()];
|
||||
var expectedTileSizes = [_ol_.DEFAULT_TILE_SIZE, 1024];
|
||||
var expectedTileSizes = [DEFAULT_TILE_SIZE, 1024];
|
||||
for (var i = 0; i < sources.length; i++) {
|
||||
var tileGrid = sources[i].getTileGrid();
|
||||
expect(tileGrid.getTileSize()).to.eql(expectedTileSizes[i]);
|
||||
|
||||
Reference in New Issue
Block a user