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
+61 -77
View File
@@ -7,83 +7,67 @@ goog.provide('ol.test.Sphere');
describe('ol.Sphere', function() {
var sphere = new ol.Sphere(6371);
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
}
];
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() {