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

View File

@@ -1,5 +1,8 @@
goog.provide('ol.test.control.Control');
goog.require('ol.Map');
goog.require('ol.control.Control');
describe('ol.control.Control', function() {
var map, control;
@@ -49,6 +52,3 @@ describe('ol.control.Control\'s target', function() {
});
});
});
goog.require('ol.Map');
goog.require('ol.control.Control');

View File

@@ -1,5 +1,7 @@
goog.provide('ol.test.control.FullScreen');
goog.require('ol.control.FullScreen');
describe('ol.control.FullScreen', function() {
describe('constructor', function() {
@@ -12,5 +14,3 @@ describe('ol.control.FullScreen', function() {
});
});
goog.require('ol.control.FullScreen');

View File

@@ -1,5 +1,7 @@
goog.provide('ol.test.control.MousePosition');
goog.require('ol.control.MousePosition');
describe('ol.control.MousePosition', function() {
describe('constructor', function() {
@@ -21,5 +23,3 @@ describe('ol.control.MousePosition', function() {
});
});
goog.require('ol.control.MousePosition');

View File

@@ -1,5 +1,10 @@
goog.provide('ol.test.control.OverviewMap');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.control.Control');
goog.require('ol.control.OverviewMap');
describe('ol.control.OverviewMap', function() {
var map, target;
@@ -85,8 +90,3 @@ describe('ol.control.OverviewMap', function() {
});
});
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.control.Control');
goog.require('ol.control.OverviewMap');

View File

@@ -1,5 +1,7 @@
goog.provide('ol.test.control.Rotate');
goog.require('ol.control.Rotate');
describe('ol.control.Rotate', function() {
describe('constructor', function() {
@@ -12,5 +14,3 @@ describe('ol.control.Rotate', function() {
});
});
goog.require('ol.control.Rotate');

View File

@@ -1,5 +1,10 @@
goog.provide('ol.test.control.ScaleLine');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.control.ScaleLine');
goog.require('ol.proj');
describe('ol.control.ScaleLine', function() {
var mapDiv;
var map;
@@ -344,9 +349,3 @@ describe('ol.control.ScaleLine', function() {
});
});
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.control.ScaleLine');
goog.require('ol.proj');

View File

@@ -1,5 +1,7 @@
goog.provide('ol.test.control.Zoom');
goog.require('ol.control.Zoom');
describe('ol.control.Zoom', function() {
describe('constructor', function() {
@@ -12,5 +14,3 @@ describe('ol.control.Zoom', function() {
});
});
goog.require('ol.control.Zoom');

View File

@@ -1,6 +1,11 @@
/*global createMapDiv, disposeMap*/
goog.provide('ol.test.control.ZoomSlider');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.control.ZoomSlider');
goog.require('ol.pointer.PointerEvent');
describe('ol.control.ZoomSlider', function() {
var map, target, zoomslider;
@@ -170,8 +175,3 @@ describe('ol.control.ZoomSlider', function() {
});
});
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.control.ZoomSlider');
goog.require('ol.pointer.PointerEvent');

View File

@@ -1,5 +1,7 @@
goog.provide('ol.test.control.ZoomToExtent');
goog.require('ol.control.ZoomToExtent');
describe('ol.control.ZoomToExtent', function() {
describe('constructor', function() {
@@ -12,5 +14,3 @@ describe('ol.control.ZoomToExtent', function() {
});
});
goog.require('ol.control.ZoomToExtent');