Move requires to end of the file to ensure tests run even if goog.require fails
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
goog.require('ol.array');
|
||||
|
||||
describe('ol.array', function() {
|
||||
|
||||
describe('binaryFindNearest', function() {
|
||||
@@ -46,3 +44,5 @@ describe('ol.array', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
goog.require('ol.array');
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
goog.require('goog.array');
|
||||
goog.require('ol.Collection');
|
||||
goog.require('ol.CollectionEventType');
|
||||
|
||||
describe('ol.collection', function() {
|
||||
var collection;
|
||||
|
||||
@@ -235,3 +231,7 @@ describe('ol.collection', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
goog.require('goog.array');
|
||||
goog.require('ol.Collection');
|
||||
goog.require('ol.CollectionEventType');
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
goog.require('ol.Extent');
|
||||
goog.require('ol.Projection');
|
||||
|
||||
describe('ol.Extent', function() {
|
||||
|
||||
describe('contains', function() {
|
||||
@@ -60,3 +57,6 @@ describe('ol.Extent', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
goog.require('ol.Extent');
|
||||
goog.require('ol.Projection');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
goog.require('ol.interaction.ResolutionConstraint');
|
||||
|
||||
describe('ol.interaction.ResolutionConstraint', function() {
|
||||
|
||||
describe('SnapToResolution', function() {
|
||||
@@ -185,3 +183,5 @@ describe('ol.interaction.ResolutionConstraint', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
goog.require('ol.interaction.ResolutionConstraint');
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.TileCoord');
|
||||
goog.require('ol.TileUrlFunction');
|
||||
goog.require('ol.tilestore.XYZ');
|
||||
|
||||
describe('ol.tilestore.XYZ', function() {
|
||||
|
||||
describe('getTileCoordUrl', function() {
|
||||
@@ -125,3 +120,8 @@ describe('ol.tilestore.XYZ', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.TileCoord');
|
||||
goog.require('ol.TileUrlFunction');
|
||||
goog.require('ol.tilestore.XYZ');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
goog.require('ol.Object');
|
||||
|
||||
describe('ol.Object', function() {
|
||||
|
||||
var o;
|
||||
@@ -367,3 +365,5 @@ describe('ol.Object', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
goog.require('ol.Object');
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
goog.require('goog.array');
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.Projection');
|
||||
|
||||
describe('ol.Projection', function() {
|
||||
|
||||
describe('projection equivalence', function() {
|
||||
@@ -101,3 +97,7 @@ describe('ol.Projection', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
goog.require('goog.array');
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.Projection');
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.Rectangle');
|
||||
|
||||
describe('ol.Rectangle', function() {
|
||||
|
||||
describe('getCenter', function() {
|
||||
@@ -100,3 +97,6 @@ describe('ol.Rectangle', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.Rectangle');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
goog.require('ol.TileCoord');
|
||||
|
||||
describe('ol.TileCoord', function() {
|
||||
|
||||
describe('create', function() {
|
||||
@@ -46,3 +44,5 @@ describe('ol.TileCoord', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
goog.require('ol.TileCoord');
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.Extent');
|
||||
goog.require('ol.Size');
|
||||
goog.require('ol.TileCoord');
|
||||
goog.require('ol.TileGrid');
|
||||
|
||||
describe('ol.TileGrid', function() {
|
||||
var extent;
|
||||
var resolutions;
|
||||
@@ -466,3 +460,9 @@ describe('ol.TileGrid', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.Coordinate');
|
||||
goog.require('ol.Extent');
|
||||
goog.require('ol.Size');
|
||||
goog.require('ol.TileCoord');
|
||||
goog.require('ol.TileGrid');
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
goog.require('ol.TileRange');
|
||||
|
||||
describe('ol.TileRange', function() {
|
||||
|
||||
describe('contains', function() {
|
||||
@@ -92,3 +90,5 @@ describe('ol.TileRange', function() {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
goog.require('ol.TileRange');
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
goog.require('ol.TileCoord');
|
||||
goog.require('ol.TileUrlFunction');
|
||||
|
||||
describe('ol.TileUrlFunction', function() {
|
||||
|
||||
describe('createFromTemplate', function() {
|
||||
@@ -36,3 +33,6 @@ describe('ol.TileUrlFunction', function() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
goog.require('ol.TileCoord');
|
||||
goog.require('ol.TileUrlFunction');
|
||||
|
||||
Reference in New Issue
Block a user