From 445246bb23202cbb4a7ebbb52849a2db03d7fa6d Mon Sep 17 00:00:00 2001 From: lipata Date: Fri, 17 Sep 2021 18:37:51 +0300 Subject: [PATCH] test(scroll): make test not so precise --- tests/unit/scroll/scroll-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/scroll/scroll-test.js b/tests/unit/scroll/scroll-test.js index 5ae1d9853..1c7e4f440 100644 --- a/tests/unit/scroll/scroll-test.js +++ b/tests/unit/scroll/scroll-test.js @@ -1734,7 +1734,7 @@ QUnit.test(testId_57, function (assert) { scrollbarPixelContentRatio = (self.vhScroll().height() / (contentHeight - scrollContainerHeight)) * (vTrackHeight - vDragHeight), expectedPosY = self.getTransform3dValueY(self.vDrag(self.vhScrollId)); - assert.equal(expectedPosY.toFixed(4), scrollbarPixelContentRatio.toFixed(4), "igScroll did not scroll properly"); + assert.equal(expectedPosY.toFixed(3), scrollbarPixelContentRatio.toFixed(3), "igScroll did not scroll properly"); self.vhScroll().remove(); done(); }).catch(function (er) {