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