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