Add tests for gml2 gml:box element

This commit is contained in:
Florent gravin
2014-10-03 12:02:14 +02:00
parent 8a07d241ff
commit 93db3d42b7
2 changed files with 13 additions and 0 deletions

View File

@@ -80,6 +80,8 @@ describe('ol.format.WFS', function() {
feature = features[0];
expect(feature.getId()).to.equal('1');
expect(feature.get('name')).to.equal('My Polygon with hole');
expect(feature.get('boundedBy')).to.eql(
[47.003018, -0.768746, 47.925567, 0.532597]);
expect(feature.getGeometry()).to.be.an(ol.geom.MultiPolygon);
expect(feature.getGeometry().getFlatCoordinates()).
to.have.length(60);