ability to parse a FeatureCollection

The trick here was to delete featureNS so autoConfig would kick in
This commit is contained in:
Bart van den Eijnden
2013-10-23 17:04:20 +02:00
parent c4e7d4437c
commit 46b79d88f8
3 changed files with 67 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
goog.provide('ol.test.parser.ogc.WFS_v1');
describe('ol.parser.ogc.WFS', function() {
var parser = new ol.parser.ogc.WFS();
describe('reading and writing', function() {
it('handles read of FeatureCollection', function(done) {
var url = 'spec/ol/parser/ogc/xml/wfs_v1/FeatureCollection.xml';
afterLoadXml(url, function(xml) {
var obj = parser.read(xml);
expect(obj.features.length).to.equal(1);
done();
});
});
});
});
goog.require('goog.dom.xml');
goog.require('ol.parser.ogc.WFS');