Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions
+15 -17
View File
@@ -1,8 +1,6 @@
goog.require('ol.style.Fill');
goog.require('ol.style.Stroke');
goog.require('ol.style.Text');
import _ol_style_Fill_ from '../../../../src/ol/style/Fill.js';
import _ol_style_Stroke_ from '../../../../src/ol/style/Stroke.js';
import _ol_style_Text_ from '../../../../src/ol/style/Text.js';
describe('ol.style.Text', function() {
@@ -10,19 +8,19 @@ describe('ol.style.Text', function() {
describe('#constructor', function() {
it('uses a default fill style if none passed', function() {
var style = new ol.style.Text();
var style = new _ol_style_Text_();
expect(style.getFill().getColor()).to.be('#333');
});
it('uses a provided fill style if one passed', function() {
var style = new ol.style.Text({
fill: new ol.style.Fill({color: '#123456'})
var style = new _ol_style_Text_({
fill: new _ol_style_Fill_({color: '#123456'})
});
expect(style.getFill().getColor()).to.be('#123456');
});
it('can always be resetted to no color', function() {
var style = new ol.style.Text();
var style = new _ol_style_Text_();
style.getFill().setColor();
expect(style.getFill().getColor()).to.be(undefined);
});
@@ -32,14 +30,14 @@ describe('ol.style.Text', function() {
describe('#clone', function() {
it('creates a new ol.style.Text', function() {
var original = new ol.style.Text();
var original = new _ol_style_Text_();
var clone = original.clone();
expect(clone).to.be.an(ol.style.Text);
expect(clone).to.be.an(_ol_style_Text_);
expect(clone).to.not.be(original);
});
it('copies all values', function() {
var original = new ol.style.Text({
var original = new _ol_style_Text_({
font: '12px serif',
offsetX: 4,
offsetY: 10,
@@ -49,10 +47,10 @@ describe('ol.style.Text', function() {
text: 'test',
textAlign: 'center',
textBaseline: 'top',
fill: new ol.style.Fill({
fill: new _ol_style_Fill_({
color: '#319FD3'
}),
stroke: new ol.style.Stroke({
stroke: new _ol_style_Stroke_({
color: '#319FD3'
})
});
@@ -71,11 +69,11 @@ describe('ol.style.Text', function() {
});
it('the clone does not reference the same objects as the original', function() {
var original = new ol.style.Text({
fill: new ol.style.Fill({
var original = new _ol_style_Text_({
fill: new _ol_style_Fill_({
color: '#319FD3'
}),
stroke: new ol.style.Stroke({
stroke: new _ol_style_Stroke_({
color: '#319FD3'
})
});