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
+12 -14
View File
@@ -1,8 +1,6 @@
goog.require('ol.Map');
goog.require('ol.Overlay');
goog.require('ol.View');
import _ol_Map_ from '../../../src/ol/Map.js';
import _ol_Overlay_ from '../../../src/ol/Overlay.js';
import _ol_View_ from '../../../src/ol/View.js';
describe('ol.Overlay', function() {
@@ -22,9 +20,9 @@ describe('ol.Overlay', function() {
style.height = height + 'px';
document.body.appendChild(target);
map = new ol.Map({
map = new _ol_Map_({
target: target,
view: new ol.View({
view: new _ol_View_({
projection: 'EPSG:4326',
center: [0, 0],
resolution: 1
@@ -40,13 +38,13 @@ describe('ol.Overlay', function() {
describe('constructor', function() {
it('can be constructed with minimal arguments', function() {
var instance = new ol.Overlay({});
expect(instance).to.be.an(ol.Overlay);
var instance = new _ol_Overlay_({});
expect(instance).to.be.an(_ol_Overlay_);
});
it('can be constructed with className', function() {
var instance = new ol.Overlay({className: 'my-class'});
expect(instance).to.be.an(ol.Overlay);
var instance = new _ol_Overlay_({className: 'my-class'});
expect(instance).to.be.an(_ol_Overlay_);
expect(instance.element.className).to.be('my-class');
});
@@ -63,14 +61,14 @@ describe('ol.Overlay', function() {
});
it('returns the overlay identifier', function() {
overlay = new ol.Overlay({
overlay = new _ol_Overlay_({
element: target,
position: [0, 0]
});
map.addOverlay(overlay);
expect(overlay.getId()).to.be(undefined);
map.removeOverlay(overlay);
overlay = new ol.Overlay({
overlay = new _ol_Overlay_({
id: 'foo',
element: target,
position: [0, 0]
@@ -92,7 +90,7 @@ describe('ol.Overlay', function() {
});
it('changes the CSS display value', function() {
overlay = new ol.Overlay({
overlay = new _ol_Overlay_({
element: target,
position: [0, 0]
});