fix($timeout): make $flush handle new $timeouts added in $timeout callbacks
If a $timeout handler calls $timeout itself, this new $timeout should be added to the mock deferred queue with a "now" time based on when the original handler was triggered. Previously it was being added with a now time of when the `$timeout.flush` method was originally called. Closes #5420 Closes #14686
L
Lucas Galfasó committed
d23c1453cd3ec80006fedc4fa90bcb095d01dc9f
Parent: de54480
Committed by Peter Bacon Darwin <pete@bacondarwin.com>
on 5/27/2016, 3:17:10 PM