Merge pull request #2095 from ahocevar/test-geometry-name

Test that a custom geometry works
This commit is contained in:
Andreas Hocevar
2014-05-21 15:08:47 +02:00

View File

@@ -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() {