Rename ol.expression to ol.expr
This commit is contained in:
@@ -51,8 +51,8 @@ describe('ol.style.Shape', function() {
|
||||
|
||||
it('accepts expressions', function() {
|
||||
var symbolizer = new ol.style.Shape({
|
||||
size: ol.expression.parse('sizeAttr'),
|
||||
strokeColor: ol.expression.parse('color')
|
||||
size: ol.expr.parse('sizeAttr'),
|
||||
strokeColor: ol.expr.parse('color')
|
||||
});
|
||||
expect(symbolizer).to.be.a(ol.style.Shape);
|
||||
});
|
||||
@@ -63,8 +63,8 @@ describe('ol.style.Shape', function() {
|
||||
|
||||
it('evaluates expressions with the given feature', function() {
|
||||
var symbolizer = new ol.style.Shape({
|
||||
size: ol.expression.parse('sizeAttr'),
|
||||
opacity: ol.expression.parse('opacityAttr'),
|
||||
size: ol.expr.parse('sizeAttr'),
|
||||
opacity: ol.expr.parse('opacityAttr'),
|
||||
fillColor: '#BADA55'
|
||||
});
|
||||
|
||||
@@ -99,8 +99,8 @@ describe('ol.style.Shape', function() {
|
||||
|
||||
it('applies default type if none provided', function() {
|
||||
var symbolizer = new ol.style.Shape({
|
||||
size: ol.expression.parse('sizeAttr'),
|
||||
opacity: ol.expression.parse('opacityAttr'),
|
||||
size: ol.expr.parse('sizeAttr'),
|
||||
opacity: ol.expr.parse('opacityAttr'),
|
||||
fillColor: '#BADA55'
|
||||
});
|
||||
|
||||
@@ -120,7 +120,7 @@ describe('ol.style.Shape', function() {
|
||||
});
|
||||
|
||||
goog.require('ol.Feature');
|
||||
goog.require('ol.expression');
|
||||
goog.require('ol.expr');
|
||||
goog.require('ol.style.Shape');
|
||||
goog.require('ol.style.ShapeLiteral');
|
||||
goog.require('ol.style.ShapeType');
|
||||
|
||||
Reference in New Issue
Block a user