Add a testcase for parsing GML feature with only boundedBy

This commit is contained in:
Bart van den Eijnden
2014-12-16 10:22:37 +01:00
parent e57ea1e66b
commit 1bf4ddac6d
2 changed files with 62 additions and 0 deletions

View File

@@ -1066,6 +1066,27 @@ describe('ol.format.GML3', function() {
});
describe('when parsing only a boundedBy element and no geometry', function() {
var features;
before(function(done) {
afterLoadText('spec/ol/format/gml/only-boundedby.xml', function(xml) {
try {
features = new ol.format.GML().readFeatures(xml);
} catch (e) {
done(e);
}
done();
});
});
it('creates a feature without a geometry', function() {
var feature = features[0];
expect(feature.getGeometry()).to.be(undefined);
});
});
});