Merge pull request #3470 from tsauerwein/rendering-tests

Add rendering tests
This commit is contained in:
Tobias Sauerwein
2015-04-06 13:49:51 +02:00
51 changed files with 1492 additions and 27 deletions

View File

@@ -693,7 +693,8 @@ describe('ol.format.GeoJSON', function() {
var newPoint = format.readGeometry(geojson, {
featureProjection: 'EPSG:3857'
});
expect(point.getCoordinates()[0]).to.eql(newPoint.getCoordinates()[0]);
expect(point.getCoordinates()[0]).to.roughlyEqual(
newPoint.getCoordinates()[0], 1e-8);
expect(
Math.abs(point.getCoordinates()[1] - newPoint.getCoordinates()[1]))
.to.be.lessThan(0.0000001);