From f66ad1253f3ca2435083a8281c4953e445eca5cd Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 2 May 2014 10:17:13 -0600 Subject: [PATCH] Reducing expectations about spherical interpolation precision This avoids test failures in Chrome 34 (see also #1748 and https://code.google.com/p/v8/issues/detail?id=3006). --- test/spec/ol/sphere/sphere.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec/ol/sphere/sphere.test.js b/test/spec/ol/sphere/sphere.test.js index 0351ea07d3..63ee5434a6 100644 --- a/test/spec/ol/sphere/sphere.test.js +++ b/test/spec/ol/sphere/sphere.test.js @@ -238,10 +238,10 @@ describe('ol.Sphere', function() { expect(c1[1]).to.roughlyEqual(e.c1[1], 1e-9); var midpoint = sphere.interpolate(e.c1, e.c2, 0.5); expect(midpoint[0]).to.roughlyEqual(e.midpoint[0], 1e-9); - expect(midpoint[1]).to.roughlyEqual(e.midpoint[1], 1e-9); + expect(midpoint[1]).to.roughlyEqual(e.midpoint[1], 1e-5); var c2 = sphere.interpolate(e.c1, e.c2, 1); expect(c2[0]).to.roughlyEqual(e.c2[0], 1e-9); - expect(c2[1]).to.roughlyEqual(e.c2[1], 1e-9); + expect(c2[1]).to.roughlyEqual(e.c2[1], 1e-5); } });