Test that a custom geometry works

This commit is contained in:
Andreas Hocevar
2014-05-21 15:08:11 +02:00
parent 6185005c3f
commit e530758b36

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