diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2019-09-24 00:58:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-24 00:58:53 +0200 |
commit | 0c67da4b74394d17991511b80f3ccff9f0c423be (patch) | |
tree | 19171287a5029d21224d2f9526951be943b151b0 /test | |
parent | 6276cb2e23375c1f2837b34bd9072ef804f996f1 (diff) | |
download | jquery-0c67da4b74394d17991511b80f3ccff9f0c423be.tar.gz jquery-0c67da4b74394d17991511b80f3ccff9f0c423be.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/offset.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } ); |