Curly brace spacing

This commit is contained in:
Tim Schaub
2016-01-02 19:14:58 -07:00
parent 9ae748408a
commit f0fc4d4e73
2 changed files with 12 additions and 12 deletions
@@ -126,7 +126,7 @@ describe('ol.source.TileArcGISRest', function() {
it('add a new param', function() { it('add a new param', function() {
var source = new ol.source.TileArcGISRest(options); var source = new ol.source.TileArcGISRest(options);
source.updateParams({ 'TEST': 'value' }); source.updateParams({'TEST': 'value'});
var tile = source.getTile(3, 2, -7, 1, ol.proj.get('EPSG:3857')); var tile = source.getTile(3, 2, -7, 1, ol.proj.get('EPSG:3857'));
var uri = new goog.Uri(tile.src_); var uri = new goog.Uri(tile.src_);
@@ -139,7 +139,7 @@ describe('ol.source.TileArcGISRest', function() {
options.params.TEST = 'value'; options.params.TEST = 'value';
var source = new ol.source.TileArcGISRest(options); var source = new ol.source.TileArcGISRest(options);
source.updateParams({ 'TEST': 'newValue' }); source.updateParams({'TEST': 'newValue'});
var tile = source.getTile(3, 2, -7, 1, ol.proj.get('EPSG:3857')); var tile = source.getTile(3, 2, -7, 1, ol.proj.get('EPSG:3857'));
var uri = new goog.Uri(tile.src_); var uri = new goog.Uri(tile.src_);
@@ -158,29 +158,29 @@ describe('ol.source.TileArcGISRest', function() {
var setParams = source.getParams(); var setParams = source.getParams();
expect(setParams).to.eql({ TEST: 'value' }); expect(setParams).to.eql({TEST: 'value'});
}); });
it('verify on adding a param', function() { it('verify on adding a param', function() {
options.params.TEST = 'value'; options.params.TEST = 'value';
var source = new ol.source.TileArcGISRest(options); var source = new ol.source.TileArcGISRest(options);
source.updateParams({ 'TEST2': 'newValue' }); source.updateParams({'TEST2': 'newValue'});
var setParams = source.getParams(); var setParams = source.getParams();
expect(setParams).to.eql({ TEST: 'value', TEST2: 'newValue' }); expect(setParams).to.eql({TEST: 'value', TEST2: 'newValue'});
}); });
it('verify on update a param', function() { it('verify on update a param', function() {
options.params.TEST = 'value'; options.params.TEST = 'value';
var source = new ol.source.TileArcGISRest(options); var source = new ol.source.TileArcGISRest(options);
source.updateParams({ 'TEST': 'newValue' }); source.updateParams({'TEST': 'newValue'});
var setParams = source.getParams(); var setParams = source.getParams();
expect(setParams).to.eql({ TEST: 'newValue' }); expect(setParams).to.eql({TEST: 'newValue'});
}); });
}); });
+5 -5
View File
@@ -20,7 +20,7 @@ describe('ol.source.WMTS', function() {
function() { function() {
var options = ol.source.WMTS.optionsFromCapabilities( var options = ol.source.WMTS.optionsFromCapabilities(
capabilities, capabilities,
{ layer: 'BlueMarbleNextGeneration', matrixSet: 'google3857' }); {layer: 'BlueMarbleNextGeneration', matrixSet: 'google3857'});
expect(options.urls).to.be.an('array'); expect(options.urls).to.be.an('array');
expect(options.urls).to.have.length(1); expect(options.urls).to.have.length(1);
@@ -50,8 +50,8 @@ describe('ol.source.WMTS', function() {
function() { function() {
var options = ol.source.WMTS.optionsFromCapabilities( var options = ol.source.WMTS.optionsFromCapabilities(
capabilities, capabilities,
{ layer: 'BlueMarbleNextGeneration', matrixSet: 'google3857', {layer: 'BlueMarbleNextGeneration', matrixSet: 'google3857',
requestEncoding: 'REST' }); requestEncoding: 'REST'});
expect(options.urls).to.be.an('array'); expect(options.urls).to.be.an('array');
expect(options.urls).to.have.length(1); expect(options.urls).to.have.length(1);
@@ -80,8 +80,8 @@ describe('ol.source.WMTS', function() {
it('can find a MatrixSet by SRS identifier', function() { it('can find a MatrixSet by SRS identifier', function() {
var options = ol.source.WMTS.optionsFromCapabilities( var options = ol.source.WMTS.optionsFromCapabilities(
capabilities, capabilities,
{ layer: 'BlueMarbleNextGeneration', projection: 'EPSG:3857', {layer: 'BlueMarbleNextGeneration', projection: 'EPSG:3857',
requestEncoding: 'REST' }); requestEncoding: 'REST'});
expect(options.matrixSet).to.be.eql('google3857'); expect(options.matrixSet).to.be.eql('google3857');
}); });