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:
Michał Gołębiowski-Owczarek 2019-09-24 00:58:53 +02:00 committed by GitHub
parent 6276cb2e23
commit 0c67da4b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
} ); } );