Put test requires on top
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
goog.provide('ol.test.source.BingMaps');
|
||||
|
||||
goog.require('ol.net');
|
||||
goog.require('ol.source.BingMaps');
|
||||
goog.require('ol.tilecoord');
|
||||
goog.require('ol.Observable');
|
||||
|
||||
|
||||
describe('ol.source.BingMaps', function() {
|
||||
|
||||
describe('#tileUrlFunction()', function() {
|
||||
@@ -70,9 +76,3 @@ describe('ol.source.BingMaps', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
goog.require('ol.net');
|
||||
goog.require('ol.source.BingMaps');
|
||||
goog.require('ol.tilecoord');
|
||||
goog.require('ol.Observable');
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
goog.provide('ol.test.source.ClusterSource');
|
||||
|
||||
goog.require('ol.Feature');
|
||||
goog.require('ol.geom.LineString');
|
||||
goog.require('ol.geom.Point');
|
||||
goog.require('ol.geom.Polygon');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.Cluster');
|
||||
goog.require('ol.source.Source');
|
||||
goog.require('ol.source.Vector');
|
||||
|
||||
describe('ol.source.Cluster', function() {
|
||||
@@ -57,11 +64,3 @@ describe('ol.source.Cluster', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
goog.require('ol.Feature');
|
||||
goog.require('ol.geom.LineString');
|
||||
goog.require('ol.geom.Point');
|
||||
goog.require('ol.geom.Polygon');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.Cluster');
|
||||
goog.require('ol.source.Source');
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
goog.provide('ol.test.source.ImageArcGISRest');
|
||||
|
||||
goog.require('ol.source.ImageArcGISRest');
|
||||
goog.require('ol.proj');
|
||||
|
||||
|
||||
describe('ol.source.ImageArcGISRest', function() {
|
||||
|
||||
@@ -180,6 +183,3 @@ describe('ol.source.ImageArcGISRest', function() {
|
||||
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.source.ImageArcGISRest');
|
||||
goog.require('ol.proj');
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
goog.provide('ol.test.source.ImageStatic');
|
||||
|
||||
goog.require('ol.source.ImageStatic');
|
||||
goog.require('ol.proj');
|
||||
|
||||
|
||||
describe('ol.source.ImageStatic', function() {
|
||||
|
||||
var extent, pixelRatio, projection, resolution;
|
||||
@@ -80,6 +84,3 @@ describe('ol.source.ImageStatic', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
goog.require('ol.source.ImageStatic');
|
||||
goog.require('ol.proj');
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
goog.provide('ol.test.source.ImageWMS');
|
||||
|
||||
goog.require('ol.source.ImageWMS');
|
||||
goog.require('ol.proj');
|
||||
|
||||
|
||||
describe('ol.source.ImageWMS', function() {
|
||||
|
||||
@@ -243,7 +246,3 @@ describe('ol.source.ImageWMS', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
goog.require('ol.source.ImageWMS');
|
||||
goog.require('ol.proj');
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
goog.provide('ol.test.source.RasterSource');
|
||||
|
||||
goog.require('ol.Map');
|
||||
goog.require('ol.View');
|
||||
goog.require('ol.layer.Image');
|
||||
goog.require('ol.proj.Projection');
|
||||
goog.require('ol.source.Image');
|
||||
goog.require('ol.source.ImageStatic');
|
||||
goog.require('ol.source.Raster');
|
||||
goog.require('ol.source.Source');
|
||||
goog.require('ol.source.Tile');
|
||||
|
||||
|
||||
var red = 'data:image/gif;base64,R0lGODlhAQABAPAAAP8AAP///yH5BAAAAAAALAAAAAA' +
|
||||
'BAAEAAAICRAEAOw==';
|
||||
|
||||
@@ -293,13 +304,3 @@ where('Uint8ClampedArray').describe('ol.source.Raster', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.Map');
|
||||
goog.require('ol.View');
|
||||
goog.require('ol.layer.Image');
|
||||
goog.require('ol.proj.Projection');
|
||||
goog.require('ol.source.Image');
|
||||
goog.require('ol.source.ImageStatic');
|
||||
goog.require('ol.source.Raster');
|
||||
goog.require('ol.source.Source');
|
||||
goog.require('ol.source.Tile');
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
goog.provide('ol.test.source.Source');
|
||||
|
||||
goog.require('ol.Attribution');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.Source');
|
||||
|
||||
|
||||
describe('ol.source.Source', function() {
|
||||
|
||||
describe('constructor', function() {
|
||||
@@ -161,7 +166,3 @@ describe('ol.source.Source', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.Attribution');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.Source');
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
goog.provide('ol.test.source.Stamen');
|
||||
|
||||
goog.require('ol.source.Stamen');
|
||||
|
||||
|
||||
describe('ol.source.Stamen', function() {
|
||||
|
||||
describe('constructor', function() {
|
||||
@@ -24,5 +27,3 @@ describe('ol.source.Stamen', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.source.Stamen');
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
goog.provide('ol.test.source.TileSource');
|
||||
|
||||
goog.require('ol.Tile');
|
||||
goog.require('ol.TileRange');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.proj.Projection');
|
||||
goog.require('ol.source.Source');
|
||||
goog.require('ol.source.Tile');
|
||||
goog.require('ol.tilegrid.TileGrid');
|
||||
|
||||
|
||||
describe('ol.source.Tile', function() {
|
||||
|
||||
describe('constructor', function() {
|
||||
@@ -313,11 +322,3 @@ describe('ol.test.source.TileMock', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.Tile');
|
||||
goog.require('ol.TileRange');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.proj.Projection');
|
||||
goog.require('ol.source.Source');
|
||||
goog.require('ol.source.Tile');
|
||||
goog.require('ol.tilegrid.TileGrid');
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
goog.provide('ol.test.source.TileArcGISRest');
|
||||
|
||||
goog.require('ol.ImageTile');
|
||||
goog.require('ol.source.TileArcGISRest');
|
||||
goog.require('ol.proj');
|
||||
|
||||
|
||||
describe('ol.source.TileArcGISRest', function() {
|
||||
|
||||
@@ -260,7 +264,3 @@ describe('ol.source.TileArcGISRest', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.ImageTile');
|
||||
goog.require('ol.source.TileArcGISRest');
|
||||
goog.require('ol.proj');
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
goog.provide('ol.test.source.TileImageSource');
|
||||
|
||||
goog.require('ol.ImageTile');
|
||||
goog.require('ol.Tile');
|
||||
goog.require('ol.TileUrlFunction');
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.proj.Projection');
|
||||
goog.require('ol.reproj.Tile');
|
||||
goog.require('ol.source.TileImage');
|
||||
|
||||
|
||||
describe('ol.source.TileImage', function() {
|
||||
function createSource(opt_proj, opt_tileGrid) {
|
||||
var proj = opt_proj || 'EPSG:3857';
|
||||
@@ -152,12 +162,3 @@ describe('ol.source.TileImage', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
goog.require('ol.ImageTile');
|
||||
goog.require('ol.Tile');
|
||||
goog.require('ol.TileUrlFunction');
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.proj.Projection');
|
||||
goog.require('ol.reproj.Tile');
|
||||
goog.require('ol.source.TileImage');
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
goog.provide('ol.test.source.TileJSON');
|
||||
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.source.Source');
|
||||
goog.require('ol.source.TileJSON');
|
||||
goog.require('ol.Observable');
|
||||
|
||||
|
||||
describe('ol.source.TileJSON', function() {
|
||||
|
||||
@@ -120,8 +125,3 @@ describe('ol.source.TileJSON', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.source.Source');
|
||||
goog.require('ol.source.TileJSON');
|
||||
goog.require('ol.Observable');
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
goog.provide('ol.test.source.TileUTFGrid');
|
||||
|
||||
goog.require('ol.net');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.Tile');
|
||||
goog.require('ol.source.TileUTFGrid');
|
||||
goog.require('ol.tilegrid.TileGrid');
|
||||
|
||||
|
||||
describe('ol.source.TileUTFGrid', function() {
|
||||
|
||||
var url = 'spec/ol/data/tileutfgrid.json';
|
||||
@@ -284,10 +291,3 @@ describe('ol.source.TileUTFGrid', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
goog.require('ol.net');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.Tile');
|
||||
goog.require('ol.source.TileUTFGrid');
|
||||
goog.require('ol.tilegrid.TileGrid');
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
goog.provide('ol.test.source.TileWMS');
|
||||
|
||||
goog.require('ol.ImageTile');
|
||||
goog.require('ol.source.TileWMS');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.tilegrid.TileGrid');
|
||||
|
||||
|
||||
describe('ol.source.TileWMS', function() {
|
||||
|
||||
@@ -279,9 +284,3 @@ describe('ol.source.TileWMS', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
goog.require('ol.ImageTile');
|
||||
goog.require('ol.source.TileWMS');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.tilegrid.TileGrid');
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
goog.provide('ol.test.source.UrlTile');
|
||||
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.UrlTile');
|
||||
|
||||
|
||||
describe('ol.source.UrlTile', function() {
|
||||
|
||||
@@ -215,6 +218,3 @@ describe('ol.source.UrlTile', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.UrlTile');
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
goog.provide('ol.test.source.Vector');
|
||||
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.Collection');
|
||||
goog.require('ol.Feature');
|
||||
goog.require('ol.geom.Point');
|
||||
goog.require('ol.geom.LineString');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.Vector');
|
||||
|
||||
|
||||
describe('ol.source.Vector', function() {
|
||||
|
||||
@@ -583,12 +591,3 @@ describe('ol.source.Vector', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.Collection');
|
||||
goog.require('ol.Feature');
|
||||
goog.require('ol.geom.Point');
|
||||
goog.require('ol.geom.LineString');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.Vector');
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
goog.provide('ol.test.source.VectorTile');
|
||||
|
||||
goog.require('ol.VectorTile');
|
||||
goog.require('ol.format.MVT');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.VectorTile');
|
||||
|
||||
|
||||
describe('ol.source.VectorTile', function() {
|
||||
|
||||
@@ -35,9 +40,3 @@ describe('ol.source.VectorTile', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
goog.require('ol.VectorTile');
|
||||
goog.require('ol.format.MVT');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.source.VectorTile');
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
goog.provide('ol.test.source.WMTS');
|
||||
|
||||
goog.require('ol.format.WMTSCapabilities');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.proj.Projection');
|
||||
goog.require('ol.tilegrid.WMTS');
|
||||
goog.require('ol.source.WMTS');
|
||||
|
||||
|
||||
describe('ol.source.WMTS', function() {
|
||||
|
||||
describe('when creating options from capabilities', function() {
|
||||
@@ -264,9 +271,3 @@ describe('ol.source.WMTS', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.format.WMTSCapabilities');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.proj.Projection');
|
||||
goog.require('ol.tilegrid.WMTS');
|
||||
goog.require('ol.source.WMTS');
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
goog.provide('ol.test.source.XYZ');
|
||||
|
||||
goog.require('ol.source.Tile');
|
||||
goog.require('ol.source.TileImage');
|
||||
goog.require('ol.source.UrlTile');
|
||||
goog.require('ol.source.XYZ');
|
||||
|
||||
|
||||
describe('ol.source.XYZ', function() {
|
||||
|
||||
@@ -186,8 +191,3 @@ describe('ol.source.XYZ', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.source.Tile');
|
||||
goog.require('ol.source.TileImage');
|
||||
goog.require('ol.source.UrlTile');
|
||||
goog.require('ol.source.XYZ');
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
goog.provide('ol.test.source.Zoomify');
|
||||
|
||||
goog.require('ol.dom');
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.proj.Projection');
|
||||
goog.require('ol.source.Zoomify');
|
||||
goog.require('ol.tilegrid.TileGrid');
|
||||
|
||||
|
||||
describe('ol.source.Zoomify', function() {
|
||||
var w = 1024;
|
||||
@@ -256,10 +262,3 @@ describe('ol.source.Zoomify', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
goog.require('ol.dom');
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.proj.Projection');
|
||||
goog.require('ol.source.Zoomify');
|
||||
goog.require('ol.tilegrid.TileGrid');
|
||||
|
||||
Reference in New Issue
Block a user