Lint-free tests

This commit is contained in:
Tim Schaub
2013-03-04 21:30:23 +01:00
parent dc19948a85
commit 1d6cd1bd1b
8 changed files with 23 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ describe('ol.geom.MultiLineString', function() {
it('throws when given with insufficient dimensions', function() {
expect(function() {
var multi = new ol.geom.MultiPoint([1]);
var multi = new ol.geom.MultiLineString([1]);
}).toThrow();
});
@@ -84,4 +84,5 @@ describe('ol.geom.MultiLineString', function() {
});
goog.require('ol.geom.Geometry');
goog.require('ol.geom.LineString');
goog.require('ol.geom.MultiLineString');

View File

@@ -71,3 +71,4 @@ describe('ol.geom.MultiPoint', function() {
goog.require('ol.geom.Geometry');
goog.require('ol.geom.MultiPoint');
goog.require('ol.geom.Point');

View File

@@ -89,3 +89,4 @@ describe('ol.geom.MultiPolygon', function() {
goog.require('ol.geom.Geometry');
goog.require('ol.geom.MultiPolygon');
goog.require('ol.geom.Polygon');

View File

@@ -84,5 +84,6 @@ describe('ol.geom.Polygon', function() {
});
goog.require('ol.geom.Geometry');
goog.require('ol.geom.LinearRing');
goog.require('ol.geom.Polygon');
goog.require('ol.geom.SharedVertices');

View File

@@ -82,3 +82,13 @@ describe('ol.layer.Vector', function() {
});
});
goog.require('ol.Expression');
goog.require('ol.Feature');
goog.require('ol.geom.LineString');
goog.require('ol.projection');
goog.require('ol.layer.Vector');
goog.require('ol.source.Vector');
goog.require('ol.style.Line');
goog.require('ol.style.Rule');
goog.require('ol.style.Style');

View File

@@ -218,6 +218,7 @@ describe('ol.parser.GeoJSON', function() {
});
goog.require('ol.Extent');
goog.require('ol.Feature');
goog.require('ol.geom.LinearRing');
goog.require('ol.geom.LineString');

View File

@@ -100,7 +100,10 @@ describe('ol.source.Vector', function() {
});
goog.require('ol.Extent');
goog.require('ol.Feature');
goog.require('ol.Projection');
goog.require('ol.filter.Extent');
goog.require('ol.filter.Geometry');
goog.require('ol.filter.Logical');
goog.require('ol.filter.LogicalOperator');
@@ -108,3 +111,4 @@ goog.require('ol.geom.GeometryType');
goog.require('ol.geom.Point');
goog.require('ol.geom.LineString');
goog.require('ol.source.Vector');
goog.require('ol.projection');

View File

@@ -59,8 +59,11 @@ describe('ol.style.Style', function() {
});
goog.require('ol.Feature');
goog.require('ol.geom.LineString');
goog.require('ol.geom.Point');
goog.require('ol.geom.Polygon');
goog.require('ol.filter.Filter');
goog.require('ol.style.Rule');
goog.require('ol.style.Shape');
goog.require('ol.style.Style');