From 91d49b26b5e06adf822aa68368b53a9708479294 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 4 Jun 2019 14:00:39 +0200 Subject: [PATCH] Round the transform values in makeProjectionTransform test --- test/spec/ol/webgl/helper.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/spec/ol/webgl/helper.test.js b/test/spec/ol/webgl/helper.test.js index 39fb1a2d68..c474941c60 100644 --- a/test/spec/ol/webgl/helper.test.js +++ b/test/spec/ol/webgl/helper.test.js @@ -213,7 +213,10 @@ describe('ol.webgl.WebGLHelper', function() { scaleTransform(expected, scaleX, scaleY); rotateTransform(expected, -frameState.viewState.rotation); translateTransform(expected, -frameState.viewState.center[0], -frameState.viewState.center[1]); - expect(h.makeProjectionTransform(frameState, given)).to.eql(expected); + + h.makeProjectionTransform(frameState, given); + + expect(given.map(val => val.toFixed(15))).to.eql(expected.map(val => val.toFixed(15))); }); });