Safer feature constructor

Calling setValues now behaves like calling set (closes #1672)
This commit is contained in:
Tim Schaub
2014-02-19 10:20:57 -07:00
parent 6344b8e06c
commit 59cbe7c23a

View File

@@ -301,13 +301,6 @@ describe('ol.Feature', function() {
});
/**
* We should be able to make the assertion below, but the constructor
* calls setValues which calls setFoo when provided with 'foo'. This
* is different behavior than calling set('foo', 'bar').
* See https://github.com/openlayers/ol3/issues/1672
it('does not get confused with "style" option to constructor', function() {
var feature = new ol.Feature({
style: 'foo'
@@ -316,8 +309,6 @@ describe('ol.Feature', function() {
expect(feature.getStyle()).to.be(null);
});
*/
it('does not get confused with user set "style" property', function() {
var feature = new ol.Feature();
feature.set('style', 'foo');