Rename {get|set}FeatureId to {get|set}Id
This commit is contained in:
@@ -265,7 +265,7 @@ describe('ol.parser.gml_v2', function() {
|
||||
expect(feature.getGeometry() instanceof
|
||||
ol.geom.MultiPolygon).to.be.ok();
|
||||
var attributes = feature.getAttributes();
|
||||
expect(feature.getFeatureId()).to.eql('states.1');
|
||||
expect(feature.getId()).to.eql('states.1');
|
||||
expect(attributes['STATE_NAME']).to.eql('Illinois');
|
||||
expect(attributes['STATE_FIPS']).to.eql('17');
|
||||
expect(attributes['SUB_REGION']).to.eql('E N Cen');
|
||||
|
||||
@@ -306,7 +306,7 @@ describe('ol.parser.gml_v3', function() {
|
||||
expect(feature.getGeometry() instanceof
|
||||
ol.geom.MultiPolygon).to.be.ok();
|
||||
var attributes = feature.getAttributes();
|
||||
expect(feature.getFeatureId()).to.eql('states.1');
|
||||
expect(feature.getId()).to.eql('states.1');
|
||||
expect(attributes['STATE_NAME']).to.eql('Illinois');
|
||||
expect(attributes['STATE_FIPS']).to.eql('17');
|
||||
expect(attributes['SUB_REGION']).to.eql('E N Cen');
|
||||
@@ -326,7 +326,7 @@ describe('ol.parser.gml_v3', function() {
|
||||
expect(feature.getGeometry() instanceof
|
||||
ol.geom.MultiPolygon).to.be.ok();
|
||||
var attributes = feature.getAttributes();
|
||||
expect(feature.getFeatureId()).to.eql('states.1');
|
||||
expect(feature.getId()).to.eql('states.1');
|
||||
expect(attributes['STATE_NAME']).to.eql('Illinois');
|
||||
expect(attributes['STATE_FIPS']).to.eql('17');
|
||||
expect(attributes['SUB_REGION']).to.eql('E N Cen');
|
||||
|
||||
Reference in New Issue
Block a user