Opened 10 years ago
Closed 9 years ago
#14361 closed bug (notabug)
animate duration off be MILLISECONDS
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 2.0.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Trying simple unit tests I ran across:
http://jsfiddle.net/raam86/25u3k/3/
changing the timeout to 101 passes the test on 2.0.3 but not the other versions.
Not sure if it's a feature or a bug. more info: http://stackoverflow.com/questions/18818250/better-way-to-test-animate-with-qunit
Note: See
TracTickets for help on using
tickets.
That's a race condition. You can't assume the browser will execute short-duration timers accurately.