Change setValues to setProperties
This commit is contained in:
@@ -9,7 +9,7 @@ describe('ol.Feature', function() {
|
||||
expect(feature).to.be.a(ol.Feature);
|
||||
});
|
||||
|
||||
it('takes attribute values', function() {
|
||||
it('takes properties', function() {
|
||||
var feature = new ol.Feature({
|
||||
foo: 'bar'
|
||||
});
|
||||
@@ -375,7 +375,7 @@ describe('ol.Feature', function() {
|
||||
|
||||
it('correctly clones features', function() {
|
||||
var feature = new ol.Feature();
|
||||
feature.setValues({'fookey': 'fooval'});
|
||||
feature.setProperties({'fookey': 'fooval'});
|
||||
feature.setId(1);
|
||||
feature.setGeometryName('geom');
|
||||
var geometry = new ol.geom.Point([1, 2]);
|
||||
|
||||
@@ -82,10 +82,10 @@ describe('ol.Object', function() {
|
||||
|
||||
});
|
||||
|
||||
describe('setValues', function() {
|
||||
describe('setProperties', function() {
|
||||
|
||||
it('sets multiple values at once', function() {
|
||||
o.setValues({
|
||||
o.setProperties({
|
||||
k1: 1,
|
||||
k2: 2
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user