Fix up parsing of OGR GML with ol.format.GML

This commit is contained in:
Bart van den Eijnden
2015-01-07 11:33:42 +01:00
parent 3abcbcf377
commit 0243ce6612
6 changed files with 66 additions and 11 deletions

View File

@@ -1087,6 +1087,26 @@ describe('ol.format.GML3', function() {
});
describe('when parsing from OGR', function() {
var features;
before(function(done) {
afterLoadText('spec/ol/format/gml/ogr.xml', function(xml) {
try {
features = new ol.format.GML().readFeatures(xml);
} catch (e) {
done(e);
}
done();
});
});
it('reads all features', function() {
expect(features.length).to.be(1);
});
});
});