Put test requires on top

This commit is contained in:
Tim Schaub
2016-08-07 23:04:04 -06:00
parent 29990abc7e
commit ed5dbd1293
160 changed files with 875 additions and 845 deletions
+6 -6
View File
@@ -1,5 +1,11 @@
goog.provide('ol.test.reproj.Image');
goog.require('ol.Image');
goog.require('ol.events');
goog.require('ol.proj');
goog.require('ol.reproj.Image');
describe('ol.reproj.Image', function() {
function createImage(pixelRatio) {
return new ol.reproj.Image(
@@ -52,9 +58,3 @@ describe('ol.reproj.Image', function() {
image.load();
});
});
goog.require('ol.Image');
goog.require('ol.events');
goog.require('ol.proj');
goog.require('ol.reproj.Image');
+4 -4
View File
@@ -1,5 +1,9 @@
goog.provide('ol.test.reproj');
goog.require('ol.reproj');
goog.require('ol.proj');
describe('ol.reproj', function() {
describe('#calculateSourceResolution', function() {
@@ -40,7 +44,3 @@ describe('ol.reproj', function() {
});
});
});
goog.require('ol.reproj');
goog.require('ol.proj');
+6 -6
View File
@@ -1,5 +1,11 @@
goog.provide('ol.test.reproj.Tile');
goog.require('ol.ImageTile');
goog.require('ol.events');
goog.require('ol.proj');
goog.require('ol.reproj.Tile');
describe('ol.reproj.Tile', function() {
beforeEach(function() {
proj4.defs('EPSG:27700', '+proj=tmerc +lat_0=49 +lon_0=-2 ' +
@@ -92,9 +98,3 @@ describe('ol.reproj.Tile', function() {
tile.load();
});
});
goog.require('ol.ImageTile');
goog.require('ol.events');
goog.require('ol.proj');
goog.require('ol.reproj.Tile');
+4 -4
View File
@@ -1,5 +1,9 @@
goog.provide('ol.test.reproj.Triangulation');
goog.require('ol.proj');
goog.require('ol.reproj.Triangulation');
describe('ol.reproj.Triangulation', function() {
beforeEach(function() {
proj4.defs('EPSG:27700', '+proj=tmerc +lat_0=49 +lon_0=-2 ' +
@@ -38,7 +42,3 @@ describe('ol.reproj.Triangulation', function() {
});
});
});
goog.require('ol.proj');
goog.require('ol.reproj.Triangulation');