Use clockwise polygons in GeoJSON tests
This commit is contained in:
@@ -33,7 +33,7 @@ describe('ol.format.GeoJSON', function() {
|
|||||||
'geometry': {
|
'geometry': {
|
||||||
'type': 'Polygon',
|
'type': 'Polygon',
|
||||||
'coordinates': [[
|
'coordinates': [[
|
||||||
[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]
|
[100.0, 0.0], [100.0, 1.0], [101.0, 1.0], [101.0, 0.0]
|
||||||
]]
|
]]
|
||||||
},
|
},
|
||||||
'properties': {
|
'properties': {
|
||||||
@@ -84,7 +84,7 @@ describe('ol.format.GeoJSON', function() {
|
|||||||
var geometry = feature.getGeometry();
|
var geometry = feature.getGeometry();
|
||||||
expect(geometry).to.be.an(ol.geom.Polygon);
|
expect(geometry).to.be.an(ol.geom.Polygon);
|
||||||
expect(geometry.getCoordinates()).to.eql([[
|
expect(geometry.getCoordinates()).to.eql([[
|
||||||
[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]
|
[100.0, 0.0], [100.0, 1.0], [101.0, 1.0], [101.0, 0.0]
|
||||||
]]);
|
]]);
|
||||||
expect(feature.get('prop0')).to.be('value0');
|
expect(feature.get('prop0')).to.be('value0');
|
||||||
expect(feature.get('prop1')).to.eql({'this': 'that'});
|
expect(feature.get('prop1')).to.eql({'this': 'that'});
|
||||||
|
|||||||
Reference in New Issue
Block a user