From 42bd1c4e2cad28cd0b11492ac33fff5c4982320b Mon Sep 17 00:00:00 2001 From: gchoqueux Date: Tue, 2 Apr 2019 11:25:08 +0200 Subject: [PATCH] fix(test): inverse range with wheel mouse event. On the travis server, the range is negative. --- test/functional/GlobeControls.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/GlobeControls.js b/test/functional/GlobeControls.js index 16d5ee9ca7..cac5e7cc8c 100644 --- a/test/functional/GlobeControls.js +++ b/test/functional/GlobeControls.js @@ -185,6 +185,7 @@ describe('GlobeControls with globe example', function _() { .dispatchEvent(wheelEvent, document); window.dispatchEvent(wheelEvent, document); })); - assert.ok(initialPosition.range - finalRange > 2000000); + // On the travis server, the range is negative. + assert.ok(Math.abs(initialPosition.range - finalRange) > 2000000); }); });