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
+11 -13
View File
@@ -1,7 +1,5 @@
goog.require('ol.layer.VectorTile');
goog.require('ol.source.VectorTile');
import _ol_layer_VectorTile_ from '../../../../src/ol/layer/VectorTile.js';
import _ol_source_VectorTile_ from '../../../../src/ol/source/VectorTile.js';
describe('ol.layer.VectorTile', function() {
@@ -11,8 +9,8 @@ describe('ol.layer.VectorTile', function() {
var layer;
beforeEach(function() {
layer = new ol.layer.VectorTile({
source: new ol.source.VectorTile({})
layer = new _ol_layer_VectorTile_({
source: new _ol_source_VectorTile_({})
});
});
@@ -21,7 +19,7 @@ describe('ol.layer.VectorTile', function() {
});
it('creates an instance', function() {
expect(layer).to.be.a(ol.layer.VectorTile);
expect(layer).to.be.a(_ol_layer_VectorTile_);
});
it('provides default preload', function() {
@@ -40,20 +38,20 @@ describe('ol.layer.VectorTile', function() {
describe('constructor (options)', function() {
it('works with options', function() {
var layer = new ol.layer.VectorTile({
var layer = new _ol_layer_VectorTile_({
renderMode: 'vector',
source: new ol.source.VectorTile({})
source: new _ol_source_VectorTile_({})
});
expect(layer.getRenderMode()).to.be('vector');
layer = new ol.layer.VectorTile({
layer = new _ol_layer_VectorTile_({
renderMode: 'image',
source: new ol.source.VectorTile({})
source: new _ol_source_VectorTile_({})
});
expect(layer.getRenderMode()).to.be('image');
expect(function() {
layer = new ol.layer.VectorTile({
layer = new _ol_layer_VectorTile_({
renderMode: 'foo',
source: new ol.source.VectorTile({})
source: new _ol_source_VectorTile_({})
});
}).to.throwException();
});