diff --git a/test/spec/ol/format/gmlformat.test.js b/test/spec/ol/format/gmlformat.test.js index 0f7dd78349..be6c1d006b 100644 --- a/test/spec/ol/format/gmlformat.test.js +++ b/test/spec/ol/format/gmlformat.test.js @@ -35,6 +35,17 @@ describe('ol.format.GML2', function() { expect(g.getCoordinates()).to.eql([-180, -90, 0]); }); + it('can read a box element', function() { + var text = '' + + ' -0.768746,47.003018 ' + + ' 3.002191,47.925567' + + ''; + + var g = readGeometry(format, text); + expect(g).to.eql([47.003018, -0.768746, 47.925567, 3.002191]); + }); + it('can read a multipolygon with gml:coordinates', function() { var text = diff --git a/test/spec/ol/format/wfsformat.test.js b/test/spec/ol/format/wfsformat.test.js index 33e8242c53..3362c3877d 100644 --- a/test/spec/ol/format/wfsformat.test.js +++ b/test/spec/ol/format/wfsformat.test.js @@ -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);