diff options
author | Joelle Fleurantin <joasqueeniebee@gmail.com> | 2015-10-18 12:45:41 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2015-10-18 16:07:29 -0400 |
commit | d047073d2bc4f507ed98c157739b1e3d0417b3f6 (patch) | |
tree | 7589dd169d12d29c9c19f6e7fb0a3f516d280b10 | |
parent | d3a2fdce9773ec688ffe50e94bce9e7f4140ad6a (diff) | |
download | jquery-d047073d2bc4f507ed98c157739b1e3d0417b3f6.tar.gz jquery-d047073d2bc4f507ed98c157739b1e3d0417b3f6.zip |
Offset: allow small differences in offset.top
Fixes gh-2590
(cherry picked from commit 9f9e204bba41b7a9cde5ba7e065d817ef8b18c41)
-rw-r--r-- | test/unit/offset.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/offset.js b/test/unit/offset.js index 76b2e897e..25f747b49 100644 --- a/test/unit/offset.js +++ b/test/unit/offset.js @@ -566,7 +566,9 @@ QUnit.test( "fractions (see #7730 and #7885)", function( assert ) { result = div.offset(); - assert.equal( result.top, expected.top, "Check top" ); + // 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" ); div.remove(); |