Clean up some lint problems in specs
This commit is contained in:
@@ -106,10 +106,13 @@ describe('ol.collection', function() {
|
|||||||
it('does dispatch events', function() {
|
it('does dispatch events', function() {
|
||||||
var collection = new ol.Collection(['a', 'b']);
|
var collection = new ol.Collection(['a', 'b']);
|
||||||
var index, prev;
|
var index, prev;
|
||||||
goog.events.listen(collection, ol.CollectionEventType.SET_AT, function(e) {
|
goog.events.listen(
|
||||||
index = e.index;
|
collection,
|
||||||
prev = e.prev;
|
ol.CollectionEventType.SET_AT,
|
||||||
});
|
function(e) {
|
||||||
|
index = e.index;
|
||||||
|
prev = e.prev;
|
||||||
|
});
|
||||||
collection.setAt(1, 1);
|
collection.setAt(1, 1);
|
||||||
expect(index).toEqual(1);
|
expect(index).toEqual(1);
|
||||||
expect(prev).toEqual('b');
|
expect(prev).toEqual('b');
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ describe('ol.Projection', function() {
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('gives that CRS:84, urn:ogc:def:crs:EPSG:6.6:4326, EPSG:4326 are equivalent', function() {
|
it('gives that CRS:84, urn:ogc:def:crs:EPSG:6.6:4326, EPSG:4326 are ' +
|
||||||
|
'equivalent', function() {
|
||||||
_testAllEquivalent([
|
_testAllEquivalent([
|
||||||
'CRS:84',
|
'CRS:84',
|
||||||
'urn:ogc:def:crs:EPSG:6.6:4326',
|
'urn:ogc:def:crs:EPSG:6.6:4326',
|
||||||
|
|||||||
@@ -57,7 +57,8 @@ describe('ol.TileRange', function() {
|
|||||||
|
|
||||||
var tileCoords = [];
|
var tileCoords = [];
|
||||||
tileRange.forEachTileCoord(5, function(tileCoord) {
|
tileRange.forEachTileCoord(5, function(tileCoord) {
|
||||||
tileCoords.push(new ol.TileCoord(tileCoord.z, tileCoord.x, tileCoord.y));
|
tileCoords.push(
|
||||||
|
new ol.TileCoord(tileCoord.z, tileCoord.x, tileCoord.y));
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(tileCoords.length).toEqual(4);
|
expect(tileCoords.length).toEqual(4);
|
||||||
|
|||||||
Reference in New Issue
Block a user