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

View File

@@ -1,12 +1,10 @@
goog.require('ol.Map');
goog.require('ol.Tile');
goog.require('ol.View');
goog.require('ol.control.Attribution');
goog.require('ol.layer.Tile');
goog.require('ol.source.Tile');
goog.require('ol.tilegrid');
import _ol_Map_ from '../../../../src/ol/Map.js';
import _ol_Tile_ from '../../../../src/ol/Tile.js';
import _ol_View_ from '../../../../src/ol/View.js';
import _ol_control_Attribution_ from '../../../../src/ol/control/Attribution.js';
import _ol_layer_Tile_ from '../../../../src/ol/layer/Tile.js';
import _ol_source_Tile_ from '../../../../src/ol/source/Tile.js';
import _ol_tilegrid_ from '../../../../src/ol/tilegrid.js';
describe('ol.control.Attribution', function() {
@@ -15,36 +13,36 @@ describe('ol.control.Attribution', function() {
var target = document.createElement('div');
target.style.width = target.style.height = '100px';
document.body.appendChild(target);
map = new ol.Map({
map = new _ol_Map_({
target: target,
controls: [new ol.control.Attribution({
controls: [new _ol_control_Attribution_({
collapsed: false,
collapsible: false
})],
layers: [
new ol.layer.Tile({
source: new ol.source.Tile({
new _ol_layer_Tile_({
source: new _ol_source_Tile_({
projection: 'EPSG:3857',
tileGrid: ol.tilegrid.createXYZ(),
tileGrid: _ol_tilegrid_.createXYZ(),
attributions: 'foo'
})
}),
new ol.layer.Tile({
source: new ol.source.Tile({
new _ol_layer_Tile_({
source: new _ol_source_Tile_({
projection: 'EPSG:3857',
tileGrid: ol.tilegrid.createXYZ(),
tileGrid: _ol_tilegrid_.createXYZ(),
attributions: 'bar'
})
}),
new ol.layer.Tile({
source: new ol.source.Tile({
new _ol_layer_Tile_({
source: new _ol_source_Tile_({
projection: 'EPSG:3857',
tileGrid: ol.tilegrid.createXYZ(),
tileGrid: _ol_tilegrid_.createXYZ(),
attributions: 'foo'
})
})
],
view: new ol.View({
view: new _ol_View_({
center: [0, 0],
zoom: 0
})
@@ -52,7 +50,7 @@ describe('ol.control.Attribution', function() {
map.getLayers().forEach(function(layer) {
var source = layer.getSource();
source.getTile = function() {
var tile = new ol.Tile([0, 0, -1], 2 /* LOADED */);
var tile = new _ol_Tile_([0, 0, -1], 2 /* LOADED */);
tile.getImage = function() {
var image = new Image();
image.width = 256;