Test indentation

This commit is contained in:
Tim Schaub
2016-01-09 14:04:02 -07:00
parent 3cf8618fc7
commit 0555bb081a
4 changed files with 193 additions and 217 deletions

View File

@@ -67,8 +67,7 @@ describe('ol.format.EsriJSON', function() {
var multiPolygonEsriJSON = {
geometry: {
rings: [
[
rings: [[
[0, 1],
[1, 4],
[4, 3],
@@ -83,8 +82,7 @@ describe('ol.format.EsriJSON', function() {
[11, 5],
[14, 3],
[13, 0]
]
]
]]
}
};
@@ -93,8 +91,7 @@ describe('ol.format.EsriJSON', function() {
};
var data = {
features: [
{
features: [{
attributes: {
'LINK_ID': 573730499,
'RP_TYPE': 14,
@@ -147,8 +144,7 @@ describe('ol.format.EsriJSON', function() {
[1549728.45985, 6403920.2]
]]
}
}
]
}]
};
describe('#readFeature', function() {

View File

@@ -71,8 +71,7 @@ describe('ol.format.GeoJSON', function() {
var data = {
'type': 'FeatureCollection',
'features': [
{
'features': [{
'type': 'Feature',
'properties': {
'LINK_ID': 573730499,
@@ -129,8 +128,7 @@ describe('ol.format.GeoJSON', function() {
[1549728.45985, 6403920.2]
]
}
}
]
}]
};
describe('#readFeature', function() {

View File

@@ -63,14 +63,12 @@ describe('ol.pointer.MouseSource', function() {
});
function simulateTouchEvent(type, x, y) {
var touches = [
{
var touches = [{
identifier: 4,
clientX: x,
clientY: y,
target: target
}
];
}];
var event = new goog.events.BrowserEvent({
type: type,

View File

@@ -7,83 +7,67 @@ goog.provide('ol.test.Sphere');
describe('ol.Sphere', function() {
var sphere = new ol.Sphere(6371);
var expected = [
{
var expected = [{
c1: [0, 0],
c2: [0, 0],
haversineDistance: 0
},
{
}, {
c1: [0, 0],
c2: [45, 45],
haversineDistance: 6671.695598673525
},
{
}, {
c1: [0, 0],
c2: [-45, 45],
haversineDistance: 6671.695598673525
},
{
}, {
c1: [0, 0],
c2: [-45, -45],
haversineDistance: 6671.695598673525
},
{
}, {
c1: [0, 0],
c2: [45, -45],
haversineDistance: 6671.695598673525
},
{
}, {
c1: [45, 45],
c2: [45, 45],
haversineDistance: 0
},
{
}, {
c1: [45, 45],
c2: [-45, 45],
haversineDistance: 6671.695598673525
},
{
}, {
c1: [45, 45],
c2: [-45, -45],
haversineDistance: 13343.391197347048
},
{
}, {
c1: [45, 45],
c2: [45, -45],
haversineDistance: 10007.543398010286
},
{
}, {
c1: [-45, 45],
c2: [-45, 45],
haversineDistance: 0
},
{
}, {
c1: [-45, 45],
c2: [-45, -45],
haversineDistance: 10007.543398010286
},
{
}, {
c1: [-45, 45],
c2: [45, -45],
haversineDistance: 13343.391197347048
},
{
}, {
c1: [-45, -45],
c2: [-45, -45],
haversineDistance: 0
},
{
}, {
c1: [-45, -45],
c2: [45, -45],
haversineDistance: 6671.695598673525
},
{
}, {
c1: [45, -45],
c2: [45, -45],
haversineDistance: 0
}
];
}];
describe('haversineDistance', function() {