(delays, durations)
| 6342 | } |
| 6343 | |
| 6344 | function getTimeout (delays, durations) { |
| 6345 | /* istanbul ignore next */ |
| 6346 | while (delays.length < durations.length) { |
| 6347 | delays = delays.concat(delays); |
| 6348 | } |
| 6349 | |
| 6350 | return Math.max.apply(null, durations.map(function (d, i) { |
| 6351 | return toMs(d) + toMs(delays[i]) |
| 6352 | })) |
| 6353 | } |
| 6354 | |
| 6355 | function toMs (s) { |
| 6356 | return Number(s.slice(0, -1)) * 1000 |
no test coverage detected