SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

fix(ngMock/$interval): add support for zero-delay intervals in tests

Previously, trying to test code thaat contained zero-delay intervals (e.g.
`$interval(fn, 0)` or `$interval(fn)`) would result in an infinite loop.
This commit avoids the infinite loop, by treating zero-delay intervals as one
second intervals (except for the initial trigger, where they can also be
executed with `$interval.flush(0)`).

Fixes #15952

Closes #15953
L
Lucio Martinez committed
a1e3f8728e0a80396f980e48f8dc68dde6721b2b
Parent: 9e8e3e1
Committed by Georgios Kalpakas <kalpakas.g@gmail.com> on 6/6/2017, 10:36:08 AM