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
+4 -8
View File
@@ -67,8 +67,7 @@ describe('ol.format.EsriJSON', function() {
var multiPolygonEsriJSON = { var multiPolygonEsriJSON = {
geometry: { geometry: {
rings: [ rings: [[
[
[0, 1], [0, 1],
[1, 4], [1, 4],
[4, 3], [4, 3],
@@ -83,8 +82,7 @@ describe('ol.format.EsriJSON', function() {
[11, 5], [11, 5],
[14, 3], [14, 3],
[13, 0] [13, 0]
] ]]
]
} }
}; };
@@ -93,8 +91,7 @@ describe('ol.format.EsriJSON', function() {
}; };
var data = { var data = {
features: [ features: [{
{
attributes: { attributes: {
'LINK_ID': 573730499, 'LINK_ID': 573730499,
'RP_TYPE': 14, 'RP_TYPE': 14,
@@ -147,8 +144,7 @@ describe('ol.format.EsriJSON', function() {
[1549728.45985, 6403920.2] [1549728.45985, 6403920.2]
]] ]]
} }
} }]
]
}; };
describe('#readFeature', function() { describe('#readFeature', function() {
+2 -4
View File
@@ -71,8 +71,7 @@ describe('ol.format.GeoJSON', function() {
var data = { var data = {
'type': 'FeatureCollection', 'type': 'FeatureCollection',
'features': [ 'features': [{
{
'type': 'Feature', 'type': 'Feature',
'properties': { 'properties': {
'LINK_ID': 573730499, 'LINK_ID': 573730499,
@@ -129,8 +128,7 @@ describe('ol.format.GeoJSON', function() {
[1549728.45985, 6403920.2] [1549728.45985, 6403920.2]
] ]
} }
} }]
]
}; };
describe('#readFeature', function() { describe('#readFeature', function() {
+2 -4
View File
@@ -63,14 +63,12 @@ describe('ol.pointer.MouseSource', function() {
}); });
function simulateTouchEvent(type, x, y) { function simulateTouchEvent(type, x, y) {
var touches = [ var touches = [{
{
identifier: 4, identifier: 4,
clientX: x, clientX: x,
clientY: y, clientY: y,
target: target target: target
} }];
];
var event = new goog.events.BrowserEvent({ var event = new goog.events.BrowserEvent({
type: type, type: type,
+16 -32
View File
@@ -7,83 +7,67 @@ goog.provide('ol.test.Sphere');
describe('ol.Sphere', function() { describe('ol.Sphere', function() {
var sphere = new ol.Sphere(6371); var sphere = new ol.Sphere(6371);
var expected = [ var expected = [{
{
c1: [0, 0], c1: [0, 0],
c2: [0, 0], c2: [0, 0],
haversineDistance: 0 haversineDistance: 0
}, }, {
{
c1: [0, 0], c1: [0, 0],
c2: [45, 45], c2: [45, 45],
haversineDistance: 6671.695598673525 haversineDistance: 6671.695598673525
}, }, {
{
c1: [0, 0], c1: [0, 0],
c2: [-45, 45], c2: [-45, 45],
haversineDistance: 6671.695598673525 haversineDistance: 6671.695598673525
}, }, {
{
c1: [0, 0], c1: [0, 0],
c2: [-45, -45], c2: [-45, -45],
haversineDistance: 6671.695598673525 haversineDistance: 6671.695598673525
}, }, {
{
c1: [0, 0], c1: [0, 0],
c2: [45, -45], c2: [45, -45],
haversineDistance: 6671.695598673525 haversineDistance: 6671.695598673525
}, }, {
{
c1: [45, 45], c1: [45, 45],
c2: [45, 45], c2: [45, 45],
haversineDistance: 0 haversineDistance: 0
}, }, {
{
c1: [45, 45], c1: [45, 45],
c2: [-45, 45], c2: [-45, 45],
haversineDistance: 6671.695598673525 haversineDistance: 6671.695598673525
}, }, {
{
c1: [45, 45], c1: [45, 45],
c2: [-45, -45], c2: [-45, -45],
haversineDistance: 13343.391197347048 haversineDistance: 13343.391197347048
}, }, {
{
c1: [45, 45], c1: [45, 45],
c2: [45, -45], c2: [45, -45],
haversineDistance: 10007.543398010286 haversineDistance: 10007.543398010286
}, }, {
{
c1: [-45, 45], c1: [-45, 45],
c2: [-45, 45], c2: [-45, 45],
haversineDistance: 0 haversineDistance: 0
}, }, {
{
c1: [-45, 45], c1: [-45, 45],
c2: [-45, -45], c2: [-45, -45],
haversineDistance: 10007.543398010286 haversineDistance: 10007.543398010286
}, }, {
{
c1: [-45, 45], c1: [-45, 45],
c2: [45, -45], c2: [45, -45],
haversineDistance: 13343.391197347048 haversineDistance: 13343.391197347048
}, }, {
{
c1: [-45, -45], c1: [-45, -45],
c2: [-45, -45], c2: [-45, -45],
haversineDistance: 0 haversineDistance: 0
}, }, {
{
c1: [-45, -45], c1: [-45, -45],
c2: [45, -45], c2: [45, -45],
haversineDistance: 6671.695598673525 haversineDistance: 6671.695598673525
}, }, {
{
c1: [45, -45], c1: [45, -45],
c2: [45, -45], c2: [45, -45],
haversineDistance: 0 haversineDistance: 0
} }];
];
describe('haversineDistance', function() { describe('haversineDistance', function() {