Call setGeometryName on the feature

This commit is contained in:
Bart van den Eijnden
2014-02-24 11:46:09 +01:00
parent b2885217df
commit dd8d69f976
2 changed files with 9 additions and 4 deletions

View File

@@ -592,7 +592,7 @@ describe('ol.format.GML', function() {
it('creates a polygon for Illinois', function() {
feature = features[0];
expect(feature.get('STATE_NAME')).to.equal('Illinois');
expect(feature.get('the_geom')).to.be.an(ol.geom.MultiPolygon);
expect(feature.getGeometry()).to.be.an(ol.geom.MultiPolygon);
});
});