aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/offset.js
diff options
context:
space:
mode:
authorJoelle Fleurantin <joasqueeniebee@gmail.com>2015-10-18 12:45:41 -0400
committerDave Methvin <dave.methvin@gmail.com>2015-10-18 14:01:35 -0400
commit9f9e204bba41b7a9cde5ba7e065d817ef8b18c41 (patch)
tree3197732da53128d937b5ed10454185a4a513837e /test/unit/offset.js
parentc577928d45bdcc3ee8f93da89ab7aadca21919f3 (diff)
downloadjquery-9f9e204bba41b7a9cde5ba7e065d817ef8b18c41.tar.gz
jquery-9f9e204bba41b7a9cde5ba7e065d817ef8b18c41.zip
Offset: allow small differences in offset.top
Fixes gh-2590
Diffstat (limited to 'test/unit/offset.js')
-rw-r--r--test/unit/offset.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/offset.js b/test/unit/offset.js
index 457034662..f0cd47769 100644
--- a/test/unit/offset.js
+++ b/test/unit/offset.js
@@ -548,7 +548,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();