Skip to content

Slider: animation of range and handle in sync #1530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Slider: animation of range and handle in sync #1530

wants to merge 2 commits into from

Conversation

atomiomi
Copy link
Contributor

@atomiomi atomiomi commented Apr 5, 2015

use stop() instead of 'queue: false' to begin animation immediatly

Fixes #9459

use `stop()` instead of 'queue: false' to begin animation immediatly

Fixes #9459
@atomiomi atomiomi closed this Apr 5, 2015
@atomiomi atomiomi reopened this Apr 5, 2015
@tjvantoll
Copy link
Member

Hi @atomiomi,

Thanks for taking the time to contribute to jQuery UI. This looks great and I verified that it fixes the issue: http://jsfiddle.net/tj_vantoll/939btayd/1/.

I only have one comment: we try to only use visual tests for things that can't be unit tested, and this seems like something that you could write a test for. Could you try to replace this PR's visual test with a unit test?

Thanks.

@atomiomi
Copy link
Contributor Author

atomiomi commented Apr 5, 2015

Hi! Yes, I know about unit testing but I have some doubt with writing test for animation, could you send me an example?

@tjvantoll
Copy link
Member

This test from slider's test suite is probably the closest to what you're going to need. You can probably simulate two clicks on the slider, and attach an event handler on the second click to ensure that the previous animation gets completed.

For more generic animation unit test examples, accordion has some pretty good tests, and the effects suite is a pretty good reference as well.

@scottgonzalez
Copy link
Member

I don't think we really need a test for this.

unit test to check animation of range and handle

Ref #9459
@atomiomi
Copy link
Contributor Author

atomiomi commented Apr 6, 2015

I've just finished writing unit test that checks synchronicity of max range slider. I tried to run it without changes that were made in the first commit as was expected it failed. Inclusion of patch makes it successful.

@atomiomi
Copy link
Contributor Author

atomiomi commented Apr 6, 2015

@scottgonzalez Ooh I could to not write it =) Anyway it's a good experience

scottgonzalez pushed a commit that referenced this pull request Jun 9, 2016
Fixes #9459
Closes gh-1530

(cherry picked from commit bf03479)
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