()
| 150 | if (current === cursor) next() |
| 151 | } |
| 152 | function startTimer() { |
| 153 | timeout = setTimeout(function() { |
| 154 | timeout = undefined |
| 155 | finalizeAsync("async test timed out after " + delay + "ms") |
| 156 | }, Math.min(delay, 2147483647)) |
| 157 | } |
| 158 | function setDelay (t) { |
| 159 | if (typeof t !== "number") throw new Error("timeout() and o.timeout() expect a number as argument") |
| 160 | delay = t |