Skip to content
Permalink
Browse files
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
  • Loading branch information
mgol committed Sep 23, 2019
1 parent 6276cb2 commit 0c67da4b74394d17991511b80f3ccff9f0c423be
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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();
} );

0 comments on commit 0c67da4

Please sign in to comment.