From 179b241aec1406a56bc143b612d9a8e5e047a83e Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sun, 3 Jan 2016 10:59:19 -0700 Subject: [PATCH] Declare variables before assignment --- test/spec/ol/format/polylineformat.test.js | 1 + test/spec/ol/format/wmsgetfeatureinfoformat.test.js | 6 +++--- test/spec/ol/geom/geometrycollection.test.js | 3 ++- test/spec/ol/interaction/modifyinteraction.test.js | 2 +- test/spec/ol/source/rastersource.test.js | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/test/spec/ol/format/polylineformat.test.js b/test/spec/ol/format/polylineformat.test.js index 247c5b6fc8..ec23833d25 100644 --- a/test/spec/ol/format/polylineformat.test.js +++ b/test/spec/ol/format/polylineformat.test.js @@ -8,6 +8,7 @@ describe('ol.format.Polyline', function() { var floats, smallFloats, encodedFloats; var signedIntegers, encodedSignedIntegers; var unsignedIntegers, encodedUnsignedIntegers; + var points3857; function resetTestingData() { format = new ol.format.Polyline(); diff --git a/test/spec/ol/format/wmsgetfeatureinfoformat.test.js b/test/spec/ol/format/wmsgetfeatureinfoformat.test.js index aff68e2dc0..f49f8e8129 100644 --- a/test/spec/ol/format/wmsgetfeatureinfoformat.test.js +++ b/test/spec/ol/format/wmsgetfeatureinfoformat.test.js @@ -56,7 +56,7 @@ describe('ol.format.WMSGetFeatureInfo', function() { }); it('read empty attributes', function() { - text = + var text = '' + '