Declare variables before assignment

This commit is contained in:
Tim Schaub
2016-01-03 10:59:19 -07:00
parent f0fc4d4e73
commit 179b241aec
5 changed files with 8 additions and 6 deletions
@@ -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();
@@ -56,7 +56,7 @@ describe('ol.format.WMSGetFeatureInfo', function() {
});
it('read empty attributes', function() {
text =
var text =
'<?xml version="1.0" encoding="ISO-8859-1"?>' +
'<msGMLOutput ' +
' xmlns:gml="http://www.opengis.net/gml"' +
@@ -84,7 +84,7 @@ describe('ol.format.WMSGetFeatureInfo', function() {
});
it('read features from multiple layers', function() {
text =
var text =
'<?xml version="1.0" encoding="ISO-8859-1"?>' +
'<msGMLOutput ' +
' xmlns:gml="http://www.opengis.net/gml"' +
@@ -143,7 +143,7 @@ describe('ol.format.WMSGetFeatureInfo', function() {
});
it('read geoservers response', function() {
text =
var text =
'<?xml version="1.0" encoding="UTF-8"?>' +
'<wfs:FeatureCollection xmlns="http://www.opengis.net/wfs"' +
' xmlns:wfs="http://www.opengis.net/wfs"' +