Move readProjectionFrom* functions to the base classes

This commit is contained in:
Frederic Junod
2015-01-20 16:59:58 +01:00
parent 2970da3461
commit 077a827197
14 changed files with 65 additions and 75 deletions
+12
View File
@@ -7,6 +7,18 @@ describe('ol.format.GPX', function() {
format = new ol.format.GPX();
});
describe('#readProjection', function() {
it('returns the default projection from document', function() {
var projection = format.readProjectionFromDocument();
expect(projection).to.eql(ol.proj.get('EPSG:4326'));
});
it('returns the default projection from node', function() {
var projection = format.readProjectionFromNode();
expect(projection).to.eql(ol.proj.get('EPSG:4326'));
});
});
describe('readFeatures', function() {
describe('rte', function() {