Rename _ol_source_TileJSON_ to TileJSON

This commit is contained in:
Tim Schaub
2018-01-08 15:51:17 -07:00
parent d940b5d458
commit 57febf2712
14 changed files with 43 additions and 43 deletions

View File

@@ -1,5 +1,5 @@
import Source from '../../../../src/ol/source/Source.js';
import _ol_source_TileJSON_ from '../../../../src/ol/source/TileJSON.js';
import TileJSON from '../../../../src/ol/source/TileJSON.js';
import Observable from '../../../../src/ol/Observable.js';
@@ -8,18 +8,18 @@ describe('ol.source.TileJSON', function() {
describe('constructor', function() {
it('returns a tileJSON source', function() {
var source = new _ol_source_TileJSON_({
var source = new TileJSON({
url: 'spec/ol/data/tilejson.json'
});
expect(source).to.be.a(Source);
expect(source).to.be.a(_ol_source_TileJSON_);
expect(source).to.be.a(TileJSON);
});
});
describe('#getTileJSON', function() {
it('parses the tilejson file', function() {
var source = new _ol_source_TileJSON_({
var source = new TileJSON({
url: 'spec/ol/data/tilejson.json'
});
source.on('change', function() {
@@ -63,7 +63,7 @@ describe('ol.source.TileJSON', function() {
version: '1.0.0',
webpage: 'https://a.tiles.mapbox.com/v3/mapbox.geography-class/page.html'
};
var source = new _ol_source_TileJSON_({
var source = new TileJSON({
tileJSON: tileJSON
});
expect(source.getState()).to.be('ready');
@@ -74,7 +74,7 @@ describe('ol.source.TileJSON', function() {
describe('#getState', function() {
it('returns error on HTTP 404', function() {
var source = new _ol_source_TileJSON_({
var source = new TileJSON({
url: 'invalid.jsonp'
});
source.on('change', function() {
@@ -84,7 +84,7 @@ describe('ol.source.TileJSON', function() {
});
it('returns error on CORS issues', function() {
var source = new _ol_source_TileJSON_({
var source = new TileJSON({
url: 'http://example.com'
});
source.on('change', function() {
@@ -94,7 +94,7 @@ describe('ol.source.TileJSON', function() {
});
it('returns error on JSON parsing issues', function() {
var source = new _ol_source_TileJSON_({
var source = new TileJSON({
url: '/'
});
source.on('change', function() {
@@ -110,7 +110,7 @@ describe('ol.source.TileJSON', function() {
var source, tileGrid;
beforeEach(function(done) {
source = new _ol_source_TileJSON_({
source = new TileJSON({
url: 'spec/ol/data/tilejson.json'
});
var key = source.on('change', function() {