Skip to content

Tests: Accept a small difference of animated width/height#1928

Merged
mgol merged 1 commit into
jquery:masterfrom
mgol:tests-effects-animation-fix
Jul 23, 2020
Merged

Tests: Accept a small difference of animated width/height#1928
mgol merged 1 commit into
jquery:masterfrom
mgol:tests-effects-animation-fix

Conversation

@mgol
Copy link
Copy Markdown
Member

@mgol mgol commented Jun 24, 2020

jQuery 3.2 & newer have a different animation logic and the animated elements
width/height differ from the starting ones even at the beginning of the
animation. The point of the assertions checking that they're identical was
to ensure bug #5245 is fixed; that issue manifested by a big jump to half the
element size. To test for that, it's enough to check that the first obtained
values are close to the original ones.

This makes effects tests pass in all supported jQuery versions.

Ref #5245

jQuery 3.2 & newer have a different animation logic and the animated elements
width/height differ from the starting ones even at the beginning of the
animation. The point of the assertions checking that they're identical was
to ensure bug #5245 is fixed; that issue manifested by a big jump to half the
element size. To test for that, it's enough to check that the first obtained
values are close to the original ones.

This makes effects tests pass in all supported jQuery versions.

Ref #5245
@mgol mgol added this to the 1.13 milestone Jun 24, 2020
@mgol mgol requested review from arschmitz and fnagel June 24, 2020 16:33
Copy link
Copy Markdown
Member

@fnagel fnagel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 by reading

@mgol mgol requested a review from a team June 25, 2020 16:53
@mgol mgol merged commit 91037d6 into jquery:master Jul 23, 2020
@mgol mgol deleted the tests-effects-animation-fix branch July 23, 2020 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants