Renaming literals
This commit is contained in:
@@ -36,7 +36,7 @@ describe('ol.style.Line', function() {
|
||||
});
|
||||
|
||||
var literal = symbolizer.createLiteral(feature);
|
||||
expect(literal).toBeA(ol.style.LiteralLine);
|
||||
expect(literal).toBeA(ol.style.LineLiteral);
|
||||
expect(literal.opacity).toBe(42 / 100);
|
||||
expect(literal.strokeWidth).toBe(1.5);
|
||||
});
|
||||
@@ -48,4 +48,4 @@ describe('ol.style.Line', function() {
|
||||
goog.require('ol.Expression');
|
||||
goog.require('ol.Feature');
|
||||
goog.require('ol.style.Line');
|
||||
goog.require('ol.style.LiteralLine');
|
||||
goog.require('ol.style.LineLiteral');
|
||||
|
||||
@@ -36,7 +36,7 @@ describe('ol.style.Polygon', function() {
|
||||
});
|
||||
|
||||
var literal = symbolizer.createLiteral(feature);
|
||||
expect(literal).toBeA(ol.style.LiteralPolygon);
|
||||
expect(literal).toBeA(ol.style.PolygonLiteral);
|
||||
expect(literal.opacity).toBe(42 / 100);
|
||||
expect(literal.fillStyle).toBe('#ff0000');
|
||||
});
|
||||
@@ -48,4 +48,4 @@ describe('ol.style.Polygon', function() {
|
||||
goog.require('ol.Expression');
|
||||
goog.require('ol.Feature');
|
||||
goog.require('ol.style.Polygon');
|
||||
goog.require('ol.style.LiteralPolygon');
|
||||
goog.require('ol.style.PolygonLiteral');
|
||||
|
||||
@@ -36,7 +36,7 @@ describe('ol.style.Shape', function() {
|
||||
});
|
||||
|
||||
var literal = symbolizer.createLiteral(feature);
|
||||
expect(literal).toBeA(ol.style.LiteralShape);
|
||||
expect(literal).toBeA(ol.style.ShapeLiteral);
|
||||
expect(literal.size).toBe(42);
|
||||
expect(literal.opacity).toBe(0.4);
|
||||
});
|
||||
@@ -48,4 +48,4 @@ describe('ol.style.Shape', function() {
|
||||
goog.require('ol.Expression');
|
||||
goog.require('ol.Feature');
|
||||
goog.require('ol.style.Shape');
|
||||
goog.require('ol.style.LiteralShape');
|
||||
goog.require('ol.style.ShapeLiteral');
|
||||
|
||||
Reference in New Issue
Block a user