Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14361 closed bug (notabug)

animate duration off be MILLISECONDS

Reported by: raam86@… 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

Change History (1)

comment:1 Changed 6 years ago by dmethvin

Resolution: notabug
Status: newclosed

That's a race condition. You can't assume the browser will execute short-duration timers accurately.

Note: See TracTickets for help on using tickets.