diff --git a/test/spec/ol/parser/geojson.test.js b/test/spec/ol/parser/geojson.test.js index 687a71d8bc..f95388b9ef 100644 --- a/test/spec/ol/parser/geojson.test.js +++ b/test/spec/ol/parser/geojson.test.js @@ -202,7 +202,7 @@ describe('ol.parser.GeoJSON', function() { var firstGeom = first.getGeometry(); expect(firstGeom).to.be.a(ol.geom.Polygon); expect(ol.extent.equals(firstGeom.getBounds(), - [60.52843, 75.158028, 29.318572, 38.486282])) + [[60.52843, 29.318572], [75.158028, 38.486282]])) .to.be(true); var last = result[178]; @@ -212,7 +212,7 @@ describe('ol.parser.GeoJSON', function() { var lastGeom = last.getGeometry(); expect(lastGeom).to.be.a(ol.geom.Polygon); expect(ol.extent.equals(lastGeom.getBounds(), - [25.264226, 32.849861, -22.271612, -15.507787])) + [[25.264226, -22.271612], [32.849861, -15.507787]])) .to.be(true); done(); }); @@ -251,7 +251,7 @@ describe('ol.parser.GeoJSON', function() { var firstGeom = first.getGeometry(); expect(firstGeom).to.be.a(ol.geom.Polygon); expect(ol.extent.equals(firstGeom.getBounds(), - [60.52843, 75.158028, 29.318572, 38.486282])) + [[60.52843, 29.318572], [75.158028, 38.486282]])) .to.be(true); var last = result[178]; @@ -260,7 +260,7 @@ describe('ol.parser.GeoJSON', function() { var lastGeom = last.getGeometry(); expect(lastGeom).to.be.a(ol.geom.Polygon); expect(ol.extent.equals(lastGeom.getBounds(), - [25.264226, 32.849861, -22.271612, -15.507787])) + [[25.264226, -22.271612], [32.849861, -15.507787]])) .to.be(true); }); }); diff --git a/test/spec/ol/parser/topojson.test.js b/test/spec/ol/parser/topojson.test.js index aa80cf2d28..a547b64646 100644 --- a/test/spec/ol/parser/topojson.test.js +++ b/test/spec/ol/parser/topojson.test.js @@ -47,10 +47,8 @@ describe('ol.parser.TopoJSON', function() { expect(geometry).to.be.a(ol.geom.Polygon); expect(geometry.getBounds()).to.eql([ - -70.08100810081008, - -69.9009900990099, - 12.417091709170947, - 12.608069195591469 + [-70.08100810081008, 12.417091709170947], + [-69.9009900990099, 12.608069195591469] ]); }); @@ -89,17 +87,16 @@ describe('ol.parser.TopoJSON', function() { expect(first).to.be.a(ol.Feature); var firstGeom = first.getGeometry(); expect(firstGeom).to.be.a(ol.geom.MultiPolygon); - expect(firstGeom.getBounds()).to.eql([ - -180, 180, -85.60903777459777, 83.64513000000002 - ]); + expect(firstGeom.getBounds()).to.eql( + [[-180, -85.60903777459777], [180, 83.64513000000002]]); var last = result.features[177]; expect(last).to.be.a(ol.Feature); var lastGeom = last.getGeometry(); expect(lastGeom).to.be.a(ol.geom.Polygon); expect(lastGeom.getBounds()).to.eql([ - 25.26325263252633, 32.848528485284874, - -22.271802279310577, -15.50833810039586 + [25.26325263252633, -22.271802279310577], + [32.848528485284874, -15.50833810039586] ]); done();