mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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
This commit is contained in:
parent
6276cb2e23
commit
0c67da4b74
@ -806,7 +806,7 @@ QUnit.test( "fractions (see #7730 and #7885)", function( assert ) {
|
|||||||
// Support: Chrome <=45 - 46
|
// Support: Chrome <=45 - 46
|
||||||
// In recent Chrome these values differ a little.
|
// 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.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();
|
div.remove();
|
||||||
} );
|
} );
|
||||||
|
Loading…
Reference in New Issue
Block a user