diff --git a/test/spec/ol/feature.test.js b/test/spec/ol/feature.test.js index 7f2b5e195f..ce829300ca 100644 --- a/test/spec/ol/feature.test.js +++ b/test/spec/ol/feature.test.js @@ -205,6 +205,14 @@ describe('ol.Feature', function() { point2.setCoordinates([0, 2]); }); + it('can use a different geometry name', function() { + var feature = new ol.Feature(); + feature.setGeometryName('foo'); + var point = new ol.geom.Point([10, 20]); + feature.setGeometry(point); + expect(feature.getGeometry()).to.be(point); + }); + }); describe('#getStyleFunction()', function() {