rename map in tests

This commit is contained in:
Ron Young
2017-12-21 09:19:00 -06:00
committed by Tim Schaub
parent ad5664e1ab
commit 9fa59d0735
49 changed files with 131 additions and 131 deletions

View File

@@ -1,4 +1,4 @@
import _ol_Map_ from '../../../../src/ol/Map.js';
import Map from '../../../../src/ol/Map.js';
import _ol_TileState_ from '../../../../src/ol/TileState.js';
import _ol_View_ from '../../../../src/ol/View.js';
import _ol_layer_Image_ from '../../../../src/ol/layer/Image.js';
@@ -58,7 +58,7 @@ where('Uint8ClampedArray').describe('ol.source.Raster', function() {
}
});
map = new _ol_Map_({
map = new Map({
target: target,
view: new _ol_View_({
resolutions: [1],
@@ -323,7 +323,7 @@ where('Uint8ClampedArray').describe('ol.source.Raster', function() {
}
});
map2 = new _ol_Map_({
map2 = new Map({
target: target,
view: new _ol_View_({
center: [0, 0],

View File

@@ -1,7 +1,7 @@
import _ol_events_ from '../../../../src/ol/events.js';
import _ol_Collection_ from '../../../../src/ol/Collection.js';
import _ol_Feature_ from '../../../../src/ol/Feature.js';
import _ol_Map_ from '../../../../src/ol/Map.js';
import Map from '../../../../src/ol/Map.js';
import _ol_View_ from '../../../../src/ol/View.js';
import Point from '../../../../src/ol/geom/Point.js';
import LineString from '../../../../src/ol/geom/LineString.js';
@@ -438,7 +438,7 @@ describe('ol.source.Vector', function() {
var div = document.createElement('div');
div.style.width = div.style.height = '100px';
document.body.appendChild(div);
var map = new _ol_Map_({
var map = new Map({
target: div,
layers: [
new _ol_layer_Vector_({

View File

@@ -1,4 +1,4 @@
import _ol_Map_ from '../../../../src/ol/Map.js';
import Map from '../../../../src/ol/Map.js';
import _ol_View_ from '../../../../src/ol/View.js';
import _ol_VectorImageTile_ from '../../../../src/ol/VectorImageTile.js';
import _ol_VectorTile_ from '../../../../src/ol/VectorTile.js';
@@ -109,7 +109,7 @@ describe('ol.source.VectorTile', function() {
target.style.width = target.style.height = '100px';
document.body.appendChild(target);
map = new _ol_Map_({
map = new Map({
layers: [
new _ol_layer_VectorTile_({
extent: extent,