Add some missing test requires
This commit is contained in:
@@ -5,7 +5,10 @@ goog.require('ol.Map');
|
|||||||
goog.require('ol.MapBrowserEvent');
|
goog.require('ol.MapBrowserEvent');
|
||||||
goog.require('ol.View');
|
goog.require('ol.View');
|
||||||
goog.require('ol.events.Event');
|
goog.require('ol.events.Event');
|
||||||
|
goog.require('ol.has');
|
||||||
goog.require('ol.interaction.Interaction');
|
goog.require('ol.interaction.Interaction');
|
||||||
|
|
||||||
|
|
||||||
describe('ol.interaction.MouseWheelZoom', function() {
|
describe('ol.interaction.MouseWheelZoom', function() {
|
||||||
var map;
|
var map;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
goog.provide('ol.test.layer.Layer');
|
goog.provide('ol.test.layer.Layer');
|
||||||
|
|
||||||
|
goog.require('ol');
|
||||||
goog.require('ol.Map');
|
goog.require('ol.Map');
|
||||||
goog.require('ol.layer.Layer');
|
goog.require('ol.layer.Layer');
|
||||||
goog.require('ol.proj');
|
goog.require('ol.proj');
|
||||||
|
|||||||
@@ -4,9 +4,10 @@ goog.require('ol.Map');
|
|||||||
goog.require('ol.MapEvent');
|
goog.require('ol.MapEvent');
|
||||||
goog.require('ol.Overlay');
|
goog.require('ol.Overlay');
|
||||||
goog.require('ol.View');
|
goog.require('ol.View');
|
||||||
|
goog.require('ol.has');
|
||||||
goog.require('ol.interaction');
|
goog.require('ol.interaction');
|
||||||
goog.require('ol.interaction.Interaction');
|
|
||||||
goog.require('ol.interaction.DoubleClickZoom');
|
goog.require('ol.interaction.DoubleClickZoom');
|
||||||
|
goog.require('ol.interaction.Interaction');
|
||||||
goog.require('ol.interaction.MouseWheelZoom');
|
goog.require('ol.interaction.MouseWheelZoom');
|
||||||
goog.require('ol.layer.Tile');
|
goog.require('ol.layer.Tile');
|
||||||
goog.require('ol.source.XYZ');
|
goog.require('ol.source.XYZ');
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
goog.provide('ol.test.renderer.canvas.Map');
|
goog.provide('ol.test.renderer.canvas.Map');
|
||||||
|
|
||||||
|
goog.require('ol');
|
||||||
goog.require('ol.Feature');
|
goog.require('ol.Feature');
|
||||||
goog.require('ol.Map');
|
goog.require('ol.Map');
|
||||||
goog.require('ol.View');
|
goog.require('ol.View');
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
goog.provide('ol.test.renderer.canvas.VectorLayer');
|
goog.provide('ol.test.renderer.canvas.VectorLayer');
|
||||||
|
|
||||||
|
goog.require('ol');
|
||||||
goog.require('ol.Feature');
|
goog.require('ol.Feature');
|
||||||
goog.require('ol.Map');
|
goog.require('ol.Map');
|
||||||
goog.require('ol.View');
|
goog.require('ol.View');
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
goog.provide('ol.test.renderer.canvas.VectorTileLayer');
|
goog.provide('ol.test.renderer.canvas.VectorTileLayer');
|
||||||
|
|
||||||
|
goog.require('ol');
|
||||||
goog.require('ol.Feature');
|
goog.require('ol.Feature');
|
||||||
goog.require('ol.Map');
|
goog.require('ol.Map');
|
||||||
goog.require('ol.VectorTile');
|
goog.require('ol.VectorTile');
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
goog.provide('ol.test.renderer.vector');
|
goog.provide('ol.test.renderer.vector');
|
||||||
|
|
||||||
|
goog.require('ol');
|
||||||
goog.require('ol.events');
|
goog.require('ol.events');
|
||||||
goog.require('ol.geom.LineString');
|
goog.require('ol.geom.LineString');
|
||||||
goog.require('ol.geom.Point');
|
goog.require('ol.geom.Point');
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
goog.provide('ol.test.TileGrid');
|
goog.provide('ol.test.TileGrid');
|
||||||
|
|
||||||
|
goog.require('ol');
|
||||||
goog.require('ol.TileRange');
|
goog.require('ol.TileRange');
|
||||||
goog.require('ol.extent');
|
goog.require('ol.extent');
|
||||||
goog.require('ol.proj');
|
goog.require('ol.proj');
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ describe('ol.TileUrlFunction', function() {
|
|||||||
templates, tileGrid);
|
templates, tileGrid);
|
||||||
var tileCoord = [3, 2, -2];
|
var tileCoord = [3, 2, -2];
|
||||||
|
|
||||||
|
/* eslint-disable openlayers-internal/no-missing-requires */
|
||||||
sinon.stub(ol.tilecoord, 'hash', function() {
|
sinon.stub(ol.tilecoord, 'hash', function() {
|
||||||
return 3;
|
return 3;
|
||||||
});
|
});
|
||||||
@@ -91,6 +92,7 @@ describe('ol.TileUrlFunction', function() {
|
|||||||
});
|
});
|
||||||
expect(tileUrlFunction(tileCoord)).to.eql('http://tile-2/3/2/1');
|
expect(tileUrlFunction(tileCoord)).to.eql('http://tile-2/3/2/1');
|
||||||
ol.tilecoord.hash.restore();
|
ol.tilecoord.hash.restore();
|
||||||
|
/* eslint-enable */
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user