Maciej Filip Szkodziński c78fba4b13 Sets and executes timeouts set during a tick.
All timeouts and intervals set during a tick were being scheduled to run
at delay + end-of-tick, instead of delay + time-of-outer-timeout.

Scheduled run-at times were shifted because currentTime was being
incremented before executing scheduled functions.

Additionally, the execute loop was iterating over a functions-to-run
array, created from scheduledFunctions before starting. Any changes to
scheduledFunctions were being ignored during the tick, and the next tick
would ignore any functions which should have been executed in the past.

The commit is a rewrite of DelayedFunctionScheduler, preserving the
public interface. Execution of scheduled functions updates currentTime
on each iteration, and each time takes the functions with the lowest
runAtMillis from the schedule, if they aren't higher than endTime.
2013-11-17 17:14:29 -08:00
2013-10-04 10:55:01 -07:00
2013-10-30 23:14:57 -04:00
2012-12-03 09:38:54 -08:00
2013-10-04 13:32:56 -07:00
2013-10-25 10:57:43 -07:00
2013-08-06 08:04:37 -07:00
2011-03-09 08:16:47 -08:00
2013-10-30 10:31:15 -04:00

Jasmine Build Status Code Climate

======= A JavaScript Testing Framework

Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.

Documentation & guides live here: http://pivotal.github.com/jasmine/

Contributing

Please read the contributors' guide

Support

Maintainers

Maintainers Emeritus

Copyright (c) 2008-2013 Pivotal Labs. This software is licensed under the MIT License.

Description
No description provided
Readme 28 KiB