Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions

View File

@@ -1,8 +1,6 @@
goog.require('ol.source.Source');
goog.require('ol.source.TileJSON');
goog.require('ol.Observable');
import _ol_source_Source_ from '../../../../src/ol/source/Source.js';
import _ol_source_TileJSON_ from '../../../../src/ol/source/TileJSON.js';
import _ol_Observable_ from '../../../../src/ol/Observable.js';
describe('ol.source.TileJSON', function() {
@@ -10,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 _ol_source_TileJSON_({
url: 'spec/ol/data/tilejson.json'
});
expect(source).to.be.a(ol.source.Source);
expect(source).to.be.a(ol.source.TileJSON);
expect(source).to.be.a(_ol_source_Source_);
expect(source).to.be.a(_ol_source_TileJSON_);
});
});
describe('#getTileJSON', function() {
it('parses the tilejson file', function() {
var source = new ol.source.TileJSON({
var source = new _ol_source_TileJSON_({
url: 'spec/ol/data/tilejson.json'
});
source.on('change', function() {
@@ -65,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 _ol_source_TileJSON_({
tileJSON: tileJSON
});
expect(source.getState()).to.be('ready');
@@ -76,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 _ol_source_TileJSON_({
url: 'invalid.jsonp'
});
source.on('change', function() {
@@ -86,7 +84,7 @@ describe('ol.source.TileJSON', function() {
});
it('returns error on CORS issues', function() {
var source = new ol.source.TileJSON({
var source = new _ol_source_TileJSON_({
url: 'http://example.com'
});
source.on('change', function() {
@@ -96,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 _ol_source_TileJSON_({
url: '/'
});
source.on('change', function() {
@@ -112,12 +110,12 @@ describe('ol.source.TileJSON', function() {
var source, tileGrid;
beforeEach(function(done) {
source = new ol.source.TileJSON({
source = new _ol_source_TileJSON_({
url: 'spec/ol/data/tilejson.json'
});
var key = source.on('change', function() {
if (source.getState() === 'ready') {
ol.Observable.unByKey(key);
_ol_Observable_.unByKey(key);
tileGrid = source.getTileGrid();
done();
}