From 0c67da4b74394d17991511b80f3ccff9f0c423be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski-Owczarek?= Date: Tue, 24 Sep 2019 00:58:53 +0200 Subject: [PATCH] Tests: Fix offset fractions tests in Chrome for Android This commit backports a looser assertion from `master` where the browsers passes offset tests. Closes gh-4470 --- test/unit/offset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/offset.js b/test/unit/offset.js index 2b63ccbd9..83edd9fbc 100644 --- a/test/unit/offset.js +++ b/test/unit/offset.js @@ -806,7 +806,7 @@ QUnit.test( "fractions (see #7730 and #7885)", function( assert ) { // Support: Chrome <=45 - 46 // In recent Chrome these values differ a little. assert.ok( Math.abs( result.top - expected.top ) < 0.25, "Check top within 0.25 of expected" ); - assert.equal( result.left, expected.left, "Check left" ); + assert.ok( Math.abs( result.left - expected.left ) < 0.25, "Check left within 0.25 of expected" ); div.remove(); } ); -- 2.39.5