Test fixes

This commit is contained in:
Tim Schaub
2017-08-16 14:24:42 -04:00
parent 02b2cdbd27
commit 73afb656d7
13 changed files with 28 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ goog.provide('ol.test.format.MVT');
goog.require('ol.Feature');
goog.require('ol.ext.PBF');
goog.require('ol.ext.vectortile.VectorTile');
goog.require('ol.extent');
goog.require('ol.format.MVT');
goog.require('ol.geom.Point');
goog.require('ol.render.Feature');
@@ -92,7 +93,7 @@ where('ArrayBuffer.isView').describe('ol.format.MVT', function() {
var format = new ol.format.MVT();
format.readFeatures(data);
var extent = format.getLastExtent();
expect(extent.getWidth()).to.be(4096);
expect(ol.extent.getWidth(extent)).to.be(4096);
});
});

View File

@@ -1,9 +1,11 @@
goog.provide('ol.test.Map');
goog.require('ol.Feature');
goog.require('ol.Map');
goog.require('ol.MapEvent');
goog.require('ol.Overlay');
goog.require('ol.View');
goog.require('ol.geom.Point');
goog.require('ol.has');
goog.require('ol.interaction');
goog.require('ol.interaction.DoubleClickZoom');
@@ -11,7 +13,9 @@ goog.require('ol.interaction.Interaction');
goog.require('ol.interaction.MouseWheelZoom');
goog.require('ol.interaction.PinchZoom');
goog.require('ol.layer.Tile');
goog.require('ol.layer.Vector');
goog.require('ol.renderer.canvas.IntermediateCanvas');
goog.require('ol.source.Vector');
goog.require('ol.source.XYZ');
describe('ol.Map', function() {

View File

@@ -2,6 +2,12 @@ goog.provide('ol.test.renderer.canvas.Replay');
goog.require('ol');
goog.require('ol.Feature');
goog.require('ol.geom.GeometryCollection');
goog.require('ol.geom.LineString');
goog.require('ol.geom.MultiLineString');
goog.require('ol.geom.MultiPoint');
goog.require('ol.geom.MultiPolygon');
goog.require('ol.geom.Point');
goog.require('ol.geom.Polygon');
goog.require('ol.render.canvas.LineStringReplay');
goog.require('ol.render.canvas.PolygonReplay');

View File

@@ -7,6 +7,7 @@ goog.require('ol.TileState');
goog.require('ol.VectorImageTile');
goog.require('ol.VectorTile');
goog.require('ol.View');
goog.require('ol.extent');
goog.require('ol.format.MVT');
goog.require('ol.geom.Point');
goog.require('ol.layer.VectorTile');

View File

@@ -5,6 +5,11 @@ goog.provide('ol.test.Sphere');
goog.require('ol.Sphere');
goog.require('ol.format.WKT');
goog.require('ol.geom.GeometryCollection');
goog.require('ol.geom.LineString');
goog.require('ol.geom.MultiLineString');
goog.require('ol.geom.MultiPoint');
goog.require('ol.geom.Point');
goog.require('ol.proj.EPSG4326');