Clean up some lint problems in specs

This commit is contained in:
Tom Payne
2012-09-27 12:32:15 +02:00
parent c908e88dce
commit b7def4c8c4
4 changed files with 16 additions and 11 deletions
+7 -4
View File
@@ -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');
+2 -1
View File
@@ -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',
+2 -1
View File
@@ -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);