Make sure ol.format.GML2 is usable for WFS 1.0 requests as well

This commit is contained in:
Bart van den Eijnden
2015-04-22 19:43:49 +02:00
parent 46e780d1ca
commit c74293335c
4 changed files with 106 additions and 3 deletions
+19
View File
@@ -19,6 +19,25 @@ describe('ol.format.GML2', function() {
formatNoSrs = new ol.format.GML2();
});
describe('#readFeatures', function() {
var features;
before(function(done) {
var url = 'spec/ol/format/gml/osm-wfs-10.xml';
afterLoadText(url, function(xml) {
try {
features = new ol.format.GML2().readFeatures(xml);
} catch (e) {
done(e);
}
done();
});
});
it('reads all features', function() {
expect(features.length).to.be(3);
});
});
describe('#readGeometry', function() {