Rename _ol_ImageTile_ to ImageTile
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import _ol_ImageTile_ from '../../../../src/ol/ImageTile.js';
|
||||
import ImageTile from '../../../../src/ol/ImageTile.js';
|
||||
import _ol_source_TileArcGISRest_ from '../../../../src/ol/source/TileArcGISRest.js';
|
||||
import {get as getProjection} from '../../../../src/ol/proj.js';
|
||||
|
||||
@@ -18,7 +18,7 @@ describe('ol.source.TileArcGISRest', function() {
|
||||
it('returns a tile with the expected URL', function() {
|
||||
var source = new _ol_source_TileArcGISRest_(options);
|
||||
var tile = source.getTile(3, 2, -7, 1, getProjection('EPSG:3857'));
|
||||
expect(tile).to.be.an(_ol_ImageTile_);
|
||||
expect(tile).to.be.an(ImageTile);
|
||||
var uri = new URL(tile.src_);
|
||||
expect(uri.protocol).to.be('http:');
|
||||
expect(uri.hostname).to.be('example.com');
|
||||
@@ -61,7 +61,7 @@ describe('ol.source.TileArcGISRest', function() {
|
||||
var source = new _ol_source_TileArcGISRest_(options);
|
||||
|
||||
var tile = source.getTile(3, 2, -7, 1, getProjection('EPSG:3857'));
|
||||
expect(tile).to.be.an(_ol_ImageTile_);
|
||||
expect(tile).to.be.an(ImageTile);
|
||||
var uri = new URL(tile.src_);
|
||||
expect(uri.protocol).to.be('http:');
|
||||
expect(uri.hostname).to.match(/test[12]\.com/);
|
||||
@@ -84,7 +84,7 @@ describe('ol.source.TileArcGISRest', function() {
|
||||
options.url = 'http://example.com/ImageServer';
|
||||
var source = new _ol_source_TileArcGISRest_(options);
|
||||
var tile = source.getTile(3, 2, -7, 1, getProjection('EPSG:3857'));
|
||||
expect(tile).to.be.an(_ol_ImageTile_);
|
||||
expect(tile).to.be.an(ImageTile);
|
||||
var uri = new URL(tile.src_);
|
||||
expect(uri.protocol).to.be('http:');
|
||||
expect(uri.hostname).to.be('example.com');
|
||||
|
||||
Reference in New Issue
Block a user