Skip to content

Commit

Permalink
Lint-free tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Mar 4, 2013
1 parent dc19948 commit 1d6cd1b
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/spec/ol/geom/multilinestring.test.js
Expand Up @@ -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();
});

Expand Down Expand Up @@ -84,4 +84,5 @@ describe('ol.geom.MultiLineString', function() {
});

goog.require('ol.geom.Geometry');
goog.require('ol.geom.LineString');
goog.require('ol.geom.MultiLineString');
1 change: 1 addition & 0 deletions test/spec/ol/geom/multipoint.test.js
Expand Up @@ -71,3 +71,4 @@ describe('ol.geom.MultiPoint', function() {

goog.require('ol.geom.Geometry');
goog.require('ol.geom.MultiPoint');
goog.require('ol.geom.Point');
1 change: 1 addition & 0 deletions test/spec/ol/geom/multipolygon.test.js
Expand Up @@ -89,3 +89,4 @@ describe('ol.geom.MultiPolygon', function() {

goog.require('ol.geom.Geometry');
goog.require('ol.geom.MultiPolygon');
goog.require('ol.geom.Polygon');
1 change: 1 addition & 0 deletions test/spec/ol/geom/polygon.test.js
Expand Up @@ -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');
10 changes: 10 additions & 0 deletions test/spec/ol/layer/vectorlayer.test.js
Expand Up @@ -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');
1 change: 1 addition & 0 deletions test/spec/ol/parser/geojson.test.js
Expand Up @@ -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');
Expand Down
4 changes: 4 additions & 0 deletions test/spec/ol/source/vectorsource.test.js
Expand Up @@ -100,11 +100,15 @@ 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');
goog.require('ol.geom.GeometryType');
goog.require('ol.geom.Point');
goog.require('ol.geom.LineString');
goog.require('ol.source.Vector');
goog.require('ol.projection');
3 changes: 3 additions & 0 deletions test/spec/ol/style/style.test.js
Expand Up @@ -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');

0 comments on commit 1d6cd1b

Please sign in to comment.