Give precedence to feature style
This commit is contained in:
@@ -411,35 +411,6 @@ describe('ol.Feature', function() {
|
||||
|
||||
});
|
||||
|
||||
describe('ol.feature.createStyleFunction()', function() {
|
||||
var style = new ol.style.Style();
|
||||
|
||||
it('creates a style function from a single style', function() {
|
||||
var styleFunction = ol.feature.createStyleFunction(style);
|
||||
expect(styleFunction()).to.eql([style]);
|
||||
});
|
||||
|
||||
it('creates a style function from an array of styles', function() {
|
||||
var styleFunction = ol.feature.createStyleFunction([style]);
|
||||
expect(styleFunction()).to.eql([style]);
|
||||
});
|
||||
|
||||
it('passes through a function', function() {
|
||||
var original = function() {
|
||||
return [style];
|
||||
};
|
||||
var styleFunction = ol.feature.createStyleFunction(original);
|
||||
expect(styleFunction).to.be(original);
|
||||
});
|
||||
|
||||
it('throws on (some) unexpected input', function() {
|
||||
expect(function() {
|
||||
ol.feature.createStyleFunction({bogus: 'input'});
|
||||
}).to.throwException();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('ol.feature.createFeatureStyleFunction()', function() {
|
||||
var style = new ol.style.Style();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user