Add missing semicolon
This commit is contained in:
@@ -55,7 +55,7 @@ describe('ol.source.Cluster', function() {
|
||||
expect(source.getFeatures().length).to.be(1);
|
||||
expect(source.getFeatures()[0].get('features').length).to.be(2);
|
||||
});
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
goog.require('ol.Feature');
|
||||
|
||||
@@ -149,7 +149,7 @@ describe('ol.source.Source', function() {
|
||||
});
|
||||
it('accepts an array with a string and an ol.Attribution', function() {
|
||||
var attribution = new ol.Attribution({html: 'Dumpty'});
|
||||
source.setAttributions(['Humpty', attribution])
|
||||
source.setAttributions(['Humpty', attribution]);
|
||||
var attributions = source.getAttributions();
|
||||
expect(attributions).to.not.be(null);
|
||||
expect(attributions).to.have.length(2);
|
||||
|
||||
@@ -95,7 +95,7 @@ describe('ol.source.TileUTFGrid', function() {
|
||||
// locally available tileJson (from `before`)
|
||||
source.handleTileJSONResponse(tileJson);
|
||||
|
||||
var tileGrid = source.getTileGrid()
|
||||
var tileGrid = source.getTileGrid();
|
||||
expect(tileGrid).to.not.be(null);
|
||||
expect(tileGrid).to.be.an(ol.tilegrid.TileGrid);
|
||||
});
|
||||
@@ -142,7 +142,7 @@ describe('ol.source.TileUTFGrid', function() {
|
||||
var tileGrid = source.getTileGrid();
|
||||
var maxZoom = tileGrid.getMaxZoom();
|
||||
expect(maxZoom).to.eql(tileJson.maxzoom);
|
||||
})
|
||||
});
|
||||
|
||||
it('sets up a template', function() {
|
||||
var source = getTileUTFGrid();
|
||||
@@ -169,9 +169,9 @@ describe('ol.source.TileUTFGrid', function() {
|
||||
expect(attributions).to.not.be(null);
|
||||
expect(attributions).to.have.length(1);
|
||||
expect(attributions[0].getHTML()).to.be(tileJson.attribution);
|
||||
var tileRanges = attributions[0].tileRanges_
|
||||
var tileRanges = attributions[0].tileRanges_;
|
||||
for (var z = tileJson.minzoom; z <= tileJson.maxzoom; z++) {
|
||||
var key = z.toString()
|
||||
var key = z.toString();
|
||||
expect(key in tileRanges).to.be(true);
|
||||
}
|
||||
});
|
||||
@@ -207,7 +207,7 @@ describe('ol.source.TileUTFGrid', function() {
|
||||
done();
|
||||
});
|
||||
client.addEventListener('error', function() {
|
||||
done(new Error('Failed to fetch local grid.json'))
|
||||
done(new Error('Failed to fetch local grid.json'));
|
||||
});
|
||||
client.open('GET', 'spec/ol/data/mapbox-geography-class-1-1-0.grid.json');
|
||||
client.send();
|
||||
|
||||
@@ -190,7 +190,7 @@ describe('ol.source.Zoomify', function() {
|
||||
|
||||
it('returns expected tileClass instances via "getTile"', function() {
|
||||
var source = getZoomifySource();
|
||||
var tile = source.getTile(0, 0, -1, 1, proj)
|
||||
var tile = source.getTile(0, 0, -1, 1, proj);
|
||||
expect(tile).to.be.an(ol.source.ZoomifyTile_);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user