Merge pull request #2095 from ahocevar/test-geometry-name
Test that a custom geometry works
This commit is contained in:
@@ -205,6 +205,14 @@ describe('ol.Feature', function() {
|
|||||||
point2.setCoordinates([0, 2]);
|
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() {
|
describe('#getStyleFunction()', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user