Port over test case for multiple Query elements

This commit is contained in:
Bart van den Eijnden
2014-03-10 15:37:29 +01:00
parent 33abbfced1
commit 6800a3290b
3 changed files with 25 additions and 2 deletions

View File

@@ -259,6 +259,27 @@ describe('ol.format.WFS', function() {
expect(serialized).to.xmleql(ol.xml.load(text));
});
});
describe('when writing out a GetFeature request', function() {
var text;
before(function(done) {
afterLoadText('spec/ol/format/wfs/GetFeatureMultiple.xml', function(xml) {
text = xml;
done();
});
});
it('handles writing multiple Query elements', function() {
var format = new ol.format.WFS();
var serialized = format.writeGetFeature({
featureNS: 'http://www.openplans.org/topp',
featureTypes: ['states', 'cities'],
featurePrefix: 'topp'
});
expect(serialized).to.xmleql(ol.xml.load(text));
});
});
});