Add test for ol.Projection getMetersPerUnit method

This commit is contained in:
Bruno Binet
2013-03-06 10:28:22 +01:00
parent 1803e7b28d
commit 097d59c41a

View File

@@ -205,7 +205,6 @@ describe('ol.projection', function() {
});
describe('ol.projection.getTransformFromCodes()', function() {
it('returns a function', function() {
@@ -305,6 +304,15 @@ describe('ol.projection', function() {
});
describe('ol.Projection.prototype.getMetersPerUnit()', function() {
it('returns value in meters', function() {
var epsg4326 = ol.projection.getFromCode('EPSG:4326');
expect(epsg4326.getMetersPerUnit()).toEqual(111317.09969219835);
});
});
});
goog.require('goog.array');