Put test requires on top
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user