Skip to content

Commit

Permalink
fix(test): inverse range with wheel mouse event.
Browse files Browse the repository at this point in the history
On the travis server, the range is negative.
  • Loading branch information
gchoqueux committed Apr 2, 2019
1 parent f059a87 commit 42bd1c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/functional/GlobeControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

0 comments on commit 42bd1c4

Please sign in to comment.